mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #5953/cc3a79bc backport][stable-6] Add attributes to some database modules (#6054)
Add attributes to some database modules (#5953)
Add attributes to some database modules.
(cherry picked from commit cc3a79bc48
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
4776ee20e3
commit
e4ce977079
21 changed files with 158 additions and 20 deletions
|
@ -18,6 +18,13 @@ requirements:
|
|||
description:
|
||||
- Sets or deletes values in etcd3 cluster using its v3 api.
|
||||
- Needs python etcd3 lib to work
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
key:
|
||||
type: str
|
||||
|
|
|
@ -20,6 +20,11 @@ requirements:
|
|||
- "python >= 2.6"
|
||||
- "influxdb >= 0.9"
|
||||
- requests
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
database_name:
|
||||
description:
|
||||
|
@ -34,6 +39,7 @@ options:
|
|||
type: str
|
||||
extends_documentation_fragment:
|
||||
- community.general.influxdb
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -18,6 +18,11 @@ author: "René Moser (@resmo)"
|
|||
requirements:
|
||||
- "python >= 2.6"
|
||||
- "influxdb >= 0.9"
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
query:
|
||||
description:
|
||||
|
@ -31,6 +36,7 @@ options:
|
|||
type: str
|
||||
extends_documentation_fragment:
|
||||
- community.general.influxdb
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@ requirements:
|
|||
- "python >= 2.6"
|
||||
- "influxdb >= 0.9"
|
||||
- requests
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
database_name:
|
||||
description:
|
||||
|
@ -65,6 +70,7 @@ options:
|
|||
version_added: '2.0.0'
|
||||
extends_documentation_fragment:
|
||||
- community.general.influxdb
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@ author: "Vitaliy Zhhuta (@zhhuta)"
|
|||
requirements:
|
||||
- "python >= 2.6"
|
||||
- "influxdb >= 0.9"
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
user_name:
|
||||
description:
|
||||
|
@ -53,6 +58,7 @@ options:
|
|||
elements: dict
|
||||
extends_documentation_fragment:
|
||||
- community.general.influxdb
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -18,6 +18,11 @@ author: "René Moser (@resmo)"
|
|||
requirements:
|
||||
- "python >= 2.6"
|
||||
- "influxdb >= 0.9"
|
||||
attributes:
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
data_points:
|
||||
description:
|
||||
|
@ -32,6 +37,7 @@ options:
|
|||
type: str
|
||||
extends_documentation_fragment:
|
||||
- community.general.influxdb
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ author:
|
|||
- Maciej Delmanowski (@drybjed)
|
||||
requirements:
|
||||
- python-ldap
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
state:
|
||||
required: false
|
||||
|
@ -69,6 +74,7 @@ options:
|
|||
I(olcAccess) attribute to easily manage LDAP Access Control Lists.
|
||||
extends_documentation_fragment:
|
||||
- community.general.ldap.documentation
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -30,6 +30,11 @@ author:
|
|||
- Jiri Tyr (@jtyr)
|
||||
requirements:
|
||||
- python-ldap
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
attributes:
|
||||
description:
|
||||
|
@ -60,6 +65,7 @@ options:
|
|||
version_added: 4.6.0
|
||||
extends_documentation_fragment:
|
||||
- community.general.ldap.documentation
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@ author:
|
|||
- Keller Fuchs (@KellerFuchs)
|
||||
requirements:
|
||||
- python-ldap
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
passwd:
|
||||
description:
|
||||
|
@ -35,6 +40,7 @@ options:
|
|||
type: str
|
||||
extends_documentation_fragment:
|
||||
- community.general.ldap.documentation
|
||||
- community.general.attributes
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -27,6 +27,11 @@ author:
|
|||
- Sebastian Pfahl (@eryx12o45)
|
||||
requirements:
|
||||
- python-ldap
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
dn:
|
||||
required: true
|
||||
|
@ -58,6 +63,7 @@ options:
|
|||
their attribute values. Overrides I(attrs) when provided.
|
||||
extends_documentation_fragment:
|
||||
- community.general.ldap.documentation
|
||||
- community.general.attributes
|
||||
"""
|
||||
|
||||
EXAMPLES = r"""
|
||||
|
|
|
@ -16,6 +16,13 @@ module: mssql_db
|
|||
short_description: Add or remove MSSQL databases from a remote host
|
||||
description:
|
||||
- Add or remove MSSQL databases from a remote host.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
|
|
@ -18,6 +18,17 @@ version_added: "4.0.0"
|
|||
description:
|
||||
- Execute SQL scripts on a MSSQL database.
|
||||
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
|
||||
attributes:
|
||||
check_mode:
|
||||
support: partial
|
||||
details:
|
||||
- The script will not be executed in check mode.
|
||||
diff_mode:
|
||||
support: none
|
||||
|
||||
options:
|
||||
name:
|
||||
description: Database to run script against.
|
||||
|
|
|
@ -16,6 +16,13 @@ version_added: "1.0.0"
|
|||
short_description: Execute SQL via ODBC
|
||||
description:
|
||||
- Read/Write info via ODBC drivers.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
dsn:
|
||||
description:
|
||||
|
|
|
@ -16,6 +16,12 @@ description:
|
|||
- Unified utility to interact with redis instances.
|
||||
extends_documentation_fragment:
|
||||
- community.general.redis
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
command:
|
||||
description:
|
||||
|
|
|
@ -16,6 +16,11 @@ version_added: 3.7.0
|
|||
description:
|
||||
- Set key value pairs in Redis database.
|
||||
author: "Andreas Botzner (@paginabianca)"
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
key:
|
||||
description:
|
||||
|
@ -59,6 +64,7 @@ options:
|
|||
|
||||
extends_documentation_fragment:
|
||||
- community.general.redis.documentation
|
||||
- community.general.attributes
|
||||
|
||||
seealso:
|
||||
- module: community.general.redis_data_incr
|
||||
|
|
|
@ -17,9 +17,17 @@ description:
|
|||
- Increment integers or float keys in Redis database and get new value.
|
||||
- Default increment for all keys is 1. For specific increments use the
|
||||
I(increment_int) and I(increment_float) options.
|
||||
author: "Andreas Botzner (@paginabianca)"
|
||||
attributes:
|
||||
check_mode:
|
||||
support: partial
|
||||
details:
|
||||
- For C(check_mode) to work, the specified I(redis_user) needs permission to
|
||||
run the C(GET) command on the key, otherwise the module will fail.
|
||||
- When using I(check_mode) the module will try to calculate the value that
|
||||
Redis would return. If the key is not present, 0.0 is used as value.
|
||||
author: "Andreas Botzner (@paginabianca)"
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
key:
|
||||
description:
|
||||
|
@ -42,10 +50,7 @@ options:
|
|||
|
||||
extends_documentation_fragment:
|
||||
- community.general.redis.documentation
|
||||
|
||||
notes:
|
||||
- For C(check_mode) to work, the specified I(redis_user) needs permission to
|
||||
run the C(GET) command on the key, otherwise the module will fail.
|
||||
- community.general.attributes
|
||||
|
||||
seealso:
|
||||
- module: community.general.redis_data
|
||||
|
|
|
@ -19,6 +19,13 @@ description:
|
|||
author:
|
||||
- "James Martin (@jsmartin)"
|
||||
- "Drew Kerrigan (@drewkerrigan)"
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
command:
|
||||
description:
|
||||
|
|
|
@ -14,6 +14,13 @@ module: vertica_configuration
|
|||
short_description: Updates Vertica configuration parameters
|
||||
description:
|
||||
- Updates Vertica configuration parameters.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
parameter:
|
||||
description:
|
||||
|
|
|
@ -15,6 +15,13 @@ module: vertica_role
|
|||
short_description: Adds or removes Vertica database roles and assigns roles to them
|
||||
description:
|
||||
- Adds or removes Vertica database role and, optionally, assign other roles.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
role:
|
||||
description:
|
||||
|
|
|
@ -20,6 +20,13 @@ description:
|
|||
- In such a situation, if the module tries to remove the schema it
|
||||
will fail and only remove roles created for the schema if they have
|
||||
no dependencies.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
schema:
|
||||
description:
|
||||
|
|
|
@ -17,6 +17,13 @@ description:
|
|||
- A user will not be removed until all the dependencies have been dropped.
|
||||
- In such a situation, if the module tries to remove the user it
|
||||
will fail and only remove roles granted to the user.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
user:
|
||||
description:
|
||||
|
|
Loading…
Reference in a new issue