Skip to content

jrtaal/postgresql

This branch is 707 commits behind ANXS/postgresql:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7127556 · Mar 14, 2014

History

20 Commits
Mar 12, 2014
Mar 12, 2014
Mar 14, 2014
Mar 14, 2014
Mar 14, 2014
Mar 12, 2014
Mar 12, 2014
Mar 12, 2014
Mar 14, 2014
Mar 12, 2014

Repository files navigation

Ansibles - PostgreSQL Build Status

Ansible role which installs and configures PostgreSQL, extensions, databases and users.

Requirements & Dependencies

  • Tested on Ansible 1.4 or higher.
  • Ansibles.monit (Galaxy/GH) if you want monit protection (in that case, you should set monit_protection: true)

Variables

# Basic settings
postgresql_version: 9.3
postgresql_encoding: 'UTF-8'
postgresql_locale: 'en_US.UTF-8'

postgresql_admin_user: "postgres"
postgresql_default_auth_method: "trust"

postgresql_cluster_name: "main"
postgresql_cluster_reset: false

# List of databases to be created (optional)
postgresql_databases:
  - name: foobar
    hstore: yes         # flag to install the hstore extensions on this database (yes/no)

# List of users to be created (optional)
postgresql_users:
  - name: baz
    pass: pass
    encrypted: no       # denotes if the password is already encrypted.

# List of user privileges to be applied (optional)
postgresql_user_privileges:
  - name: baz          # user name
    db: foobar         # database
    priv: "ALL"        # privilege string format: example: INSERT,UPDATE/table:SELECT/anothertable:ALL

There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role for PostgreSQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published