mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
influxdb: make param database_name uncommon (#34021)
This commit is contained in:
parent
b385e3d725
commit
168fb07cba
4 changed files with 10 additions and 5 deletions
|
@ -25,6 +25,10 @@ requirements:
|
|||
- "influxdb >= 0.9"
|
||||
- requests
|
||||
options:
|
||||
database_name:
|
||||
description:
|
||||
- Name of the database.
|
||||
required: true
|
||||
state:
|
||||
description:
|
||||
- Determines if the database should be created or destroyed.
|
||||
|
@ -107,6 +111,7 @@ def drop_database(module, client, database_name):
|
|||
def main():
|
||||
argument_spec = InfluxDb.influxdb_argument_spec()
|
||||
argument_spec.update(
|
||||
database_name=dict(required=True, type='str'),
|
||||
state=dict(default='present', type='str', choices=['present', 'absent'])
|
||||
)
|
||||
module = AnsibleModule(
|
||||
|
|
|
@ -25,6 +25,10 @@ requirements:
|
|||
- "influxdb >= 0.9"
|
||||
- requests
|
||||
options:
|
||||
database_name:
|
||||
description:
|
||||
- Name of the database.
|
||||
required: true
|
||||
policy_name:
|
||||
description:
|
||||
- Name of the retention policy
|
||||
|
@ -165,6 +169,7 @@ def alter_retention_policy(module, client, retention_policy):
|
|||
def main():
|
||||
argument_spec = InfluxDb.influxdb_argument_spec()
|
||||
argument_spec.update(
|
||||
database_name=dict(required=True, type='str'),
|
||||
policy_name=dict(required=True, type='str'),
|
||||
duration=dict(required=True, type='str'),
|
||||
replication=dict(required=True, type='int'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue