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.
Extension name of the extension to remove
Add if exist slug
Add restrict slug
Drop on cascade
System user all operations should be performed on behalf of
Database to act on
Database username if different from config or default
User password if any password for a specified user
Database host if different from config or default
Database port if different from config or default
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.
The name of the extension to be installed
Add an IF NOT EXISTS
parameter to the DDL statement
Schema to install the extension into
Version to install
Old extension version if already installed
System user all operations should be performed on behalf of
Database to act on
Database username if different from config or default
User password if any password for a specified user
Database host if different from config or default
Database port if different from config or default