Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Jesterovskiy/chef-cookbook-postgis2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Installs and configures PostGIS 2

Requirements

Platforms

  • Debian, Ubuntu

Tested on:

  • Ubuntu 12.04

Cookboooks

Requires Opscode's openssl, postgresql and apt cookbooks.

Attributes

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

Recipes

default

Include all the recepies on this cookbook to get postgis up and running

add-apt-repositories

Add new repositories to get the (official) packages for PostGIS 2.1

create-db-template

Creates a new database template as indicated on PostGIS 2.1 installation documentation

fix-locale

Sets locale variables

initialise-db-template

Initialise the template database as indicated on Postgis 2.1 installation documentation

install-postgis2

Install PostGIS 2.1 packages from the (official) repositories added on add-apt-repositories

install-support-packages

Basically installs the python-software-properties package to support the apt-add-repository command

setup-default-template-with-postgis

Setup PostGIS 2.1 to default postgresql template (template1). After that new db will be with extension.

Usage

On systems that need to connect to a PostgreSQL database, add to a run list recipe[postgis2]

License and Author

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.

About

Chef cookbook for PostGIS 2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%