salt.states.postgres_cluster

Management of PostgreSQL clusters

The postgres_cluster state module is used to manage PostgreSQL clusters. Clusters can be set as either absent or present

create cluster 9.3 main:
  postgres_cluster.present:
      - name: 'main'
      - version: '9.3'
salt.states.postgres_cluster.absent(version, name)

Ensure that the named cluster is absent

version

Version of the postgresql server of the cluster to remove

name

The name of the cluster to remove

New in version 2016.3.0.

salt.states.postgres_cluster.present(version, name, port=None, encoding=None, locale=None, datadir=None, allow_group_access=None, data_checksums=None, wal_segsize=None)

Ensure that the named cluster is present with the specified properties. For more information about all of these options see man pg_createcluster(1)

version

Version of the postgresql cluster

name

The name of the cluster

port

Cluster port

encoding

The character encoding scheme to be used in this database

locale

Locale with which to create cluster

datadir

Where the cluster is stored

allow_group_access

Allows users in the same group as the cluster owner to read all cluster files created by initdb

data_checksums

Use checksums on data pages

wal_segsize

Set the WAL segment size, in megabytes

New in version 2016.3.0.