No description
Find a file
Javier Bértoli 62c54f04d7 Merge pull request #128 from Laogeodritt/laogeodritt-fix-acl
Fix missing spaces in long pg_hba.conf lines
2016-10-09 14:29:30 -03:00
_modules properly quote identifiers with double quotes. This is rarely necessary. 2016-07-12 09:48:21 -05:00
_states Handle test=True correctly for tablespace owner 2015-04-23 12:04:20 -05:00
postgres Fix missing spaces in long pg_hba.conf lines 2016-10-09 07:29:52 -04:00
test/integration/default/serverspec Map Pillar dicts for PostgreSQL entities to the Salt state arguments 2016-09-09 18:02:47 +03:00
.gitignore Add gitignore 2015-02-20 17:38:03 +00:00
.kitchen.yml Add test-kitchen configuration file 2015-02-20 17:29:34 +00:00
Gemfile Add Gemfile with kitchen-salt dependencies 2015-02-20 17:13:54 +00:00
Gemfile.lock Add Gemfile with kitchen-salt dependencies 2015-02-20 17:13:54 +00:00
LICENSE Removing extra new lines 2015-05-07 13:37:18 -04:00
pillar.example Manage PostgreSQL entities with client.sls states 2016-10-04 14:38:21 +03:00
README.rst Manage PostgreSQL entities with client.sls states 2016-10-04 14:38:21 +03:00

postgres

Available states

postgres

Installs and configures both PostgreSQL server and client with creation of various DB objects in the cluster.

postgres.client

Installs the PostgreSQL client binaries and libraries. Allows to create such DB objects as: users, tablespaces, databases, schemas and extensions. See pillar.example file for details.

postgres.python

Installs the PostgreSQL adapter for Python.

postgres.server

Installs the PostgreSQL server package and prepares the DB cluster.

postgres.upstream

Configures the PostgreSQL Official (upstream) repository on target system if applicable.

The state relies on the postgres:use_upstream_repo Pillar value which could be set as following:

  • True (default): adds the upstream repository to install packages from
  • False: makes sure that the repository configuration is absent

The postgres:version Pillar controls which version of the PostgreSQL packages should be installed from the upstream repository. Defaults to 9.5.

Testing

Testing is done with the kitchen-salt.

kitchen converge

Runs the postgres main state.

kitchen verify

Runs serverspec tests on the actual instance.

kitchen test

Builds and runs tests from scratch.

kitchen login

Gives you ssh to the vagrant machine for manual testing.