A cookbook for installing and managing Postgis
Ruby
Pull request Compare This branch is 1 commit ahead, 37 commits behind realityforge:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
files/default
recipes
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
metadata.rb

README.md

Description

Build Status

The postgis cookbook installs and configures the Postgis Postgresql extension and creates a GIS enabled database template.

Requirements

  • the postgresql cookbook

Attributes

  • node['postgis']['template_name'] - The name of the gis database template. Defaults to "template_postgis". Set to nil to disable the creation of the template.

Usage

There is one recipe provided:

  • postgis::default - Install the Postgis binaries and create the template. Note: this includes the postgresql::server after installing the postgis binaries.

However it should be noted that it is best setup the locale so that the encoding is the desired database encoding prior to including the recipe. Typically this is set via a snippet such as;

node.override['locale']['lang'] = 'en_AU.UTF-8'
include_recipe 'locale::default'

include_recipe 'postgis::default'