salt.states.postgres_cluster module

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

2015.XX 新版功能.

salt.states.postgres_cluster.present(version, name, port=None, encoding=None, locale=None, datadir=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

2015.XX 新版功能.