Installs and configures PostGIS 2
- Debian, Ubuntu
- Ubuntu 12.04
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
Basically installs the
python-software-properties package to support the
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
License and Author
Author:: Rogelio Castillo (firstname.lastname@example.org)
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
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.