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'
Ensure that the named cluster is absent
Version of the postgresql server of the cluster to remove
The name of the cluster to remove
New in version 2016.3.0.
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 of the postgresql cluster
The name of the cluster
Cluster port
The character encoding scheme to be used in this database
Locale with which to create cluster
Where the cluster is stored
Allows users in the same group as the cluster owner to read all cluster files created by initdb
Use checksums on data pages
Set the WAL segment size, in megabytes
New in version 2016.3.0.