A module used to install and manage PostgreSQL extensions.
adminpack:
postgres_extension.present
New in version 2014.7.0.
salt.states.postgres_extension.
absent
(name, if_exists=None, restrict=None, cascade=None, user=None, maintenance_db=None, db_user=None, db_password=None, db_host=None, db_port=None)¶Ensure that the named extension is absent.
salt.states.postgres_extension.
present
(name, if_not_exists=None, schema=None, ext_version=None, from_version=None, user=None, maintenance_db=None, db_user=None, db_password=None, db_host=None, db_port=None)¶Ensure that the named extension is present.
Note
Before you can use the state to load an extension into a database, the extension’s supporting files must be already installed.
For more information about all of these options see CREATE EXTENSION
SQL
command reference in the PostgreSQL documentation.
IF NOT EXISTS
parameter to the DDL statementDocs for previous releases are available on readthedocs.org.
Latest Salt release: 2016.11.1