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
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)
Where the cluster is stored
2015.XX 新版功能.