influxdb: make param database_name uncommon (#34021)

pull/27837/merge
René Moser 7 years ago committed by GitHub
parent b385e3d725
commit 168fb07cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,6 @@ class InfluxDb():
port=dict(default=8086, type='int'),
username=dict(default='root', type='str'),
password=dict(default='root', type='str', no_log=True),
database_name=dict(required=True, type='str'),
ssl=dict(default=False, type='bool'),
validate_certs=dict(default=True, type='bool'),
timeout=dict(type='int'),

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

@ -23,10 +23,6 @@ options:
description:
- The port on which InfluxDB server is listening
default: 8086
database_name:
description:
- Name of the database.
required: true
validate_certs:
description:
- If set to C(no), the SSL certificates will not be validated.

Loading…
Cancel
Save