![Gitter](https://badges.gitter.im/Join Chat.svg)
Installs and configures PostGIS 2
- Debian, Ubuntu
Tested on:
- Ubuntu 12.04
Requires Opscode's openssl
, postgresql
and apt
cookbooks.
The following attributes are set based on the platform, see the
attributes/default.rb
file for default values.
- node['postgis']['template_name'] = name of the db template use for postgis
Include all the recepies on this cookbook to get postgis up and running
Add new repositories to get the (official) packages for PostGIS 2.1
Creates a new database template as indicated on PostGIS 2.1 installation documentation
Sets locale variables
Initialise the template database as indicated on Postgis 2.1 installation documentation
Install PostGIS 2.1 packages from the (official) repositories added on
add-apt-repositories
Basically installs the python-software-properties
package to support the
apt-add-repository
command
Setup PostGIS 2.1 to default postgresql template (template1). After that new db will be with extension.
On systems that need to connect to a PostgreSQL database, add to a run
list recipe[postgis2]
Author:: Rogelio Castillo ([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.