Installs and configures geoserver to run on tomcat application server.
- Ubuntu 14.04 LTS
Tested on:
- Ubuntu 14.04 LTS
Requires the following cookbooks
application_java
database
postgresql
postgis
tomcat
-
node[:geoserver][:version]
- The version of geoserver to install. -
node[:geoserver][:workingDir]
- The temporary working directory for downloading and extracting geoserver archive. -
node[:geoserver][:link]
- The geoserver compressed archive link. -
node[:geoserver][:home]
- The directory where geoserver war would be hosted and deployed to tomcat. -
node[:geoserver][:data]
- Geoserver data directory. -
node[:geoserver][:context]
- Geoserver context path on tomcat.
node[:geoserver][:database]
- The name of the postgresql database.node[:geoserver][:database-user]
- The name of the database user.node[:geoserver][:database-password]
- The password for the database user.
default.rb
- Downloads geoserver and deploys it to tomcat.postgresql.rb
- Creates postgresql database and user for geoserver. Alos installs postgis extensions to this database.
You can install geoserver on tomcat as follows.
Create a file geoserver.json with the following contents.
{
"geoserver-tomcat": {
"data": "/usr/local/geoserver-data",
"database": "geoserver",
"database-user": "geoserver",
"database-password": "suerpsecretpassword"
},
"postgresql": {
"password": {
"postgres": "postgres123"
}
},
"tomcat": {
"base_version": "7"
},
"java": {
"jdk_version": "7"
},
"run_list": [
"recipe[geoserver-tomcat]"
]
}
- Author:: Ashish Shinde ([email protected])
- Author:: Sandeep Tadekar ([email protected])
- Author:: Prabhakar Rajagopal ([email protected])
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.