1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add attributes to some database modules (#5953)

Add attributes to some database modules.
This commit is contained in:
Felix Fontein 2023-02-24 09:23:04 +01:00 committed by GitHub
parent cc29b16536
commit cc3a79bc48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 158 additions and 20 deletions

View file

@ -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

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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"""

View file

@ -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:

View file

@ -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.

View file

@ -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:

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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: