mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix inline documentation examples not rendering
add missing modules to indexes
This commit is contained in:
parent
cb3645e8b4
commit
61ca281519
5 changed files with 45 additions and 22 deletions
|
@ -34,6 +34,7 @@ Full list of builtin pillar modules
|
|||
redismod
|
||||
s3
|
||||
sql_base
|
||||
sqlcipher
|
||||
sqlite3
|
||||
stack
|
||||
svn_pillar
|
||||
|
|
|
@ -132,6 +132,8 @@ Full list of builtin state modules
|
|||
postgres_database
|
||||
postgres_extension
|
||||
postgres_group
|
||||
postgres_language
|
||||
postgres_privileges
|
||||
postgres_schema
|
||||
postgres_tablespace
|
||||
postgres_user
|
||||
|
|
|
@ -2044,8 +2044,10 @@ def language_list(
|
|||
Return a list of languages in a database.
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.language_list dbname
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.language_list dbname
|
||||
|
||||
maintenance_db
|
||||
The database to check
|
||||
|
@ -2098,8 +2100,10 @@ def language_exists(
|
|||
Checks if language exists in a database.
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.language_exists plpgsql dbname
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.language_exists plpgsql dbname
|
||||
|
||||
name
|
||||
Language to check for
|
||||
|
@ -2145,8 +2149,10 @@ def language_create(name,
|
|||
Installs a language into a database
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.language_create plpgsql dbname
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.language_create plpgsql dbname
|
||||
|
||||
name
|
||||
Language to install
|
||||
|
@ -2200,8 +2206,10 @@ def language_remove(name,
|
|||
Removes a language from a database
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.language_remove plpgsql dbname
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.language_remove plpgsql dbname
|
||||
|
||||
name
|
||||
Language to remove
|
||||
|
@ -2472,8 +2480,10 @@ def privileges_list(
|
|||
Return a list of privileges for the specified object.
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.privileges_list table_name table maintenance_db=db_name
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.privileges_list table_name table maintenance_db=db_name
|
||||
|
||||
name
|
||||
Name of the object for which the permissions should be returned
|
||||
|
@ -2570,9 +2580,11 @@ def has_privileges(name,
|
|||
Check if a role has the specified privileges on an object
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.has_privileges user_name table_name table \
|
||||
SELECT,INSERT maintenance_db=db_name
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.has_privileges user_name table_name table \\
|
||||
SELECT,INSERT maintenance_db=db_name
|
||||
|
||||
name
|
||||
Name of the role whose privilages should be checked on object_type
|
||||
|
@ -2690,9 +2702,11 @@ def privileges_grant(name,
|
|||
Grant privileges on a postgres object
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.privileges_grant user_name table_name table \
|
||||
SELECT,UPDATE maintenance_db=db_name
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.privileges_grant user_name table_name table \\
|
||||
SELECT,UPDATE maintenance_db=db_name
|
||||
|
||||
name
|
||||
Name of the role to which privilages should be granted
|
||||
|
@ -2814,9 +2828,11 @@ def privileges_revoke(name,
|
|||
Revoke privileges on a postgres object
|
||||
|
||||
CLI Example:
|
||||
.. code-block:: bash
|
||||
salt '*' postgres.privileges_revoke user_name table_name table \
|
||||
SELECT,UPDATE maintenance_db=db_name
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' postgres.privileges_revoke user_name table_name table \\
|
||||
SELECT,UPDATE maintenance_db=db_name
|
||||
|
||||
name
|
||||
Name of the role whose privilages should be revoked
|
||||
|
|
|
@ -9,17 +9,17 @@ Languages can be set as either absent or present
|
|||
.. versionadded:: Boron
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
plpgsql:
|
||||
postgres_language.present:
|
||||
- maintenance_db: testdb
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
plpgsql:
|
||||
postgres_language.absent:
|
||||
- maintenance_db: testdb
|
||||
|
||||
.. versionadded:: Boron
|
||||
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Setting the grant option is supported as well.
|
|||
.. versionadded:: Boron
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
baruwa:
|
||||
postgres_privileges.present:
|
||||
- object_name: awl
|
||||
|
@ -34,6 +35,7 @@ Setting the grant option is supported as well.
|
|||
- maintenance_db: testdb
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
andrew:
|
||||
postgres_privileges.present:
|
||||
- object_name: admins
|
||||
|
@ -42,6 +44,7 @@ Setting the grant option is supported as well.
|
|||
- maintenance_db: testdb
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
baruwa:
|
||||
postgres_privileges.absent:
|
||||
- object_name: awl
|
||||
|
@ -54,6 +57,7 @@ Setting the grant option is supported as well.
|
|||
- maintenance_db: testdb
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
andrew:
|
||||
postgres_privileges.absent:
|
||||
- object_name: admins
|
||||
|
@ -239,7 +243,7 @@ def absent(name,
|
|||
- DELETE
|
||||
- ALL
|
||||
|
||||
NOTE: privileges should not be set when revoking group membership
|
||||
:note: privileges should not be set when revoking group membership
|
||||
|
||||
prepend
|
||||
Table and Sequence object types live under a schema so this should be
|
||||
|
|
Loading…
Add table
Reference in a new issue