Module to provide Postgres compatibility to salt for debian family specific tools.
salt.modules.deb_postgres.
cluster_create
(version, name='main', port=None, locale=None, encoding=None, datadir=None)¶Adds a cluster to the Postgres server.
CLI Example:
salt '*' postgres.cluster_create '9.3'
salt '*' postgres.cluster_create '9.3' 'main'
salt '*' postgres.cluster_create '9.3' locale='fr_FR'
salt.modules.deb_postgres.
cluster_exists
(version, name='main')¶Checks if a given version and name of a cluster exists.
CLI Example:
salt '*' postgres.cluster_exists '9.3'
salt '*' postgres.cluster_exists '9.3' 'main'
salt.modules.deb_postgres.
cluster_list
(verbose=False)¶Return a list of cluster of Postgres server (tuples of version and name).
CLI Example:
salt '*' postgres.cluster_list
salt '*' postgres.cluster_list verbose=True
salt.modules.deb_postgres.
cluster_remove
(version, name='main', stop=False)¶Remove a cluster on a Postgres server. By default it doesn't try to stop the cluster.
CLI Example:
salt '*' postgres.cluster_remove '9.3'
salt '*' postgres.cluster_remove '9.3' 'main'
salt '*' postgres.cluster_remove '9.3' 'main' stop=True
Generated on August 05, 2021 at 04:04:00 UTC.
You are viewing docs for the previous stable release, 3000.9. Switch to docs for the latest stable release, 3003.1, or to a recent doc build from the master branch.
© 2021 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy