Module Expr Str ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Return CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore CompareIn AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Str Assign NameStore NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Str If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call AttributeLoad Str attr NameLoad NameLoad attr Str Str Return NameLoad Assign NameStore NameLoad If BoolOpOr NameLoad NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad If NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If NameLoad body If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Str Return NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list
N/A N/A 
Management of PostgreSQL extensions (e.g.: postgis)
===================================================

The postgres_extensions module is used to create and manage Postgres extensions.

.. code-block:: yaml

    adminpack:
      postgres_extension.present


.. versionadded:: 2014.7.0
 __future__ absolute_import N/A logging salt.modules postgres N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Only load if the postgres module is present
     N/A N/A postgres.create_extension __salt__ N/A present N/A N/A name if_not_exists schema ext_version from_version user maintenance_db db_password db_host db_port db_user N/A None None None None None None None None None None N/A N/A 
    Ensure that the named extension is present with the specified privileges

    name
        The name of the extension to manage

    if_not_exists
        Add a if_not_exists switch to the ddl statement

    schema
        Schema to install the extension into

    from_version
        Old extension version if already installed

    ext_version
        version to install

    user
        System user all operations should be performed on behalf of

    maintenance_db
        Database to act on

    db_user
        database username if different from config or default

    db_password
        user password if any password for a specified user

    db_host
        Database host if different from config or default

    db_port
        Database port if different from config or default
     N/A ret N/A name changes result comment name N/A True N/A N/A Extension {0} is already present format name N/A db_args N/A maintenance_db runas host user port password maintenance_db user db_host db_user db_port db_password N/A mode create N/A mtdata N/A N/A __salt__ N/A postgres.create_metadata name schema schema ext_version ext_version db_args N/A toinstall N/A N/A postgres _EXTENSION_NOT_INSTALLED mtdata N/A toinstall N/A N/A mode install N/A toupgrade False N/A N/A N/A postgres _EXTENSION_INSTALLED mtdata N/A N/A flag N/A N/A postgres _EXTENSION_TO_MOVE N/A postgres _EXTENSION_TO_UPGRADE N/A N/A N/A flag mtdata N/A N/A toupgrade True N/A mode upgrade N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A mode N/A N/A N/A ret N/A comment N/A N/A N/A N/A Extension {0} is set to be {1}ed format name mode replace eed ed N/A ret N/A cret None N/A N/A toinstall toupgrade N/A N/A cret N/A N/A __salt__ N/A postgres.create_extension name name if_not_exists if_not_exists schema schema ext_version ext_version from_version from_version db_args N/A cret N/A N/A N/A N/A mode endswith e N/A N/A suffix d N/A N/A suffix ed N/A N/A ret N/A comment N/A N/A The extension {0} has been {1}{2} format name mode suffix N/A N/A N/A cret None N/A N/A N/A ret N/A comment N/A N/A Failed to {1} extension {0} format name mode N/A N/A ret N/A result False N/A N/A N/A ret N/A result True N/A ret N/A absent N/A N/A name if_exists restrict cascade user maintenance_db db_password db_host db_port db_user N/A None None None None None None None None None N/A N/A 
    Ensure that the named extension is absent

    name
        Extension name of the extension to remove

    cascade
        Drop on cascade

    if_exists
        Add if exist slug

    restrict
        Add restrict slug

    maintenance_db
        Database to act on

    user
        System user all operations should be performed on behalf of

    db_user
        database username if different from config or default

    db_password
        user password if any password for a specified user

    db_host
        Database host if different from config or default

    db_port
        Database port if different from config or default
     N/A ret N/A name changes result comment name N/A True N/A db_args N/A maintenance_db runas host user port password maintenance_db user db_host db_user db_port db_password N/A exists N/A N/A __salt__ N/A postgres.is_installed_extension name db_args N/A exists N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A N/A ret N/A comment N/A N/A Extension {0} is set to be removed format name N/A ret N/A N/A N/A __salt__ N/A postgres.drop_extension name if_exists if_exists restrict restrict cascade cascade db_args N/A N/A N/A ret N/A comment N/A N/A Extension {0} has been removed format name N/A N/A N/A ret N/A changes N/A name Absent N/A ret N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Extension {0} failed to be removed format name N/A ret N/A N/A N/A ret N/A comment N/A N/A Extension {0} is not present, so it cannot be removed format name N/A ret N/A