mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
influxdb: make param database_name uncommon (#34021)
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user