Code Monkey home page Code Monkey logo

puppet-postgis's Introduction

PostGis Puppet module

Puppet Forge Build Status

Usage

include ::postgis

This will install the postgis package, create a template\_postgis template database with geometry_columns and geometry_columns tables.

This module is provided by Camptocamp

Contributing

Please report bugs and feature request using GitHub issue tracker.

For pull requests, it is very much appreciated to check your Puppet manifest with puppet-lint to follow the recommended Puppet style guidelines from the Puppet Labs style guide.

puppet-postgis's People

Contributors

ckaenzig avatar fredj avatar mbornoz avatar mcanevet avatar raphink avatar saimonn avatar zorbash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-postgis's Issues

Creating a database requires parameter 'template' which is not supported by the puppet labs module.

Invalid parameter template in database.pp.

When trying to create a postgis database with this:

postgis::database{'tdarmeta':
    owner => 'tdar',
}

I get an error about 'invalid parameter template' in database.pp. It seems as if the current puppet labs postgres module does not support specifying which template a database should use, and so this will not work.

See puppetlabs/puppetlabs-postgresql#164
which has not yet been accepted.

Issue discovered while using a CentOS 6.4 x86_64 VirtualBox image

Hello Everyone,

I believe that I may have identified a potential issue. I was installing PostGIS within a CentOS 6.4 environment (using the VirtualBox image at the URL http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20131103.box), and I found that there appeared to be a conflict involving this Module and puppet-postgresql:

class { 'postgresql::globals':
    manage_package_repo => true,
}
[...]
include ::postgis

This fails with the error that $libdir cannot be resolved from within the appropriate SQL file for PostGIS (in this case, /usr/pgsql-8.4/share/contrib/postgis-1.5/postgis.sql). From what I could best determine, this can be traced to an error which arises when the postgresql-server package is installed using the yum.

I've attempted to resolve this by setting manage_package_repo to false, only to find a plethora of issues plaguing the installation process arising from deprecated releases of the GDAL releases (when attempting to install PostGIS from another third-party yum repository).

I've handled this locally by simply invoking sed to replace $libdir within the needed SQL files during the creation of PostGIS databases. I certainly understand if this is far too low a priority an issue to address (CentOS 6.4 and PostGIS 1.5 are quite old).

Please note that, should this more properly be resolved by the maintainers of puppetlabs/puppetlabs-postgresql, I've created the JIRA issue MODULES-1635.

Thank you greatly for your time and contributions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.