The postgis cookbook installs and configures the Postgis Postgresql extension and creates a GIS enabled database template.
- Ubuntu
- Fedora
- Centos
- Rhel
- apt
- yum
- postgresql
node['postgis']['template_name']
- Postgis Template Database: The name of the gis database template. Set to nil to disable the creation of the template. Defaults totemplate_postgis
.node['postgis']['locale']
- Postgis Template locale: The locale of the database. Defaults toen_US.utf8
.node['postgis']['include_postgresql_cookbook']
- Includepostgresql::server
cookbook. Defaults totrue
.
- postgis::default - Install the Postgis binaries and create the template.
Install the Postgis binaries and create the template.
Note: this includes the postgresql::server after installing the postgis binaries.
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'
Maintainer:: Peter Donald ([email protected])
License:: Apache 2.0