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

influxdb: make param database_name uncommon (#34021)

This commit is contained in:
René Moser 2017-12-19 20:51:07 +01:00 committed by GitHub
parent b385e3d725
commit 168fb07cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View file

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

View file

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

View file

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

View file

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