Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Puppet Postgres Module

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 files
Octocat-spinner-32 lib
Octocat-spinner-32 manifests
Octocat-spinner-32 spec
Octocat-spinner-32 templates
Octocat-spinner-32 tests
Octocat-spinner-32 .puppet-lint.rc
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Modulefile
Octocat-spinner-32 README.markdown
README.markdown

Postgres Puppet module.

All bugs produced by Kris Buytaert (and now Kit Plummer too).

There are two variables that need to be set at the site.pp level: $postgres_password = "password" This sets the default password for the postgres user and database. and $postgres_version = "84" This sets the version of Postgres to be required.

Init the database before you start configuring files as once hba files etc exists in /var/lib/pgsql/data the initial database creation won't work anymore .

include postgres
postgres::initdb{ 'host': }
# Current postmaster.ops template has only listen address configurable,  this can offcourse be expanded as needed...
postgres::config{ 'host': listen => '*', }
postgres::hba { 'host':
  allowedrules => [
    'host    DATABASE all    10.0.0.0/32  trust',
  ],
}
postgres::enable{ 'host': }`

To add a user and password:

postgres::createuser{'username':passwd => 'password',}

To create a new database:

postgres::createdb{'newdb':owner=> 'username',}

Something went wrong with that request. Please try again.