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'), port=dict(default=8086, type='int'),
username=dict(default='root', type='str'), username=dict(default='root', type='str'),
password=dict(default='root', type='str', no_log=True), password=dict(default='root', type='str', no_log=True),
database_name=dict(required=True, type='str'),
ssl=dict(default=False, type='bool'), ssl=dict(default=False, type='bool'),
validate_certs=dict(default=True, type='bool'), validate_certs=dict(default=True, type='bool'),
timeout=dict(type='int'), timeout=dict(type='int'),

@ -25,6 +25,10 @@ requirements:
- "influxdb >= 0.9" - "influxdb >= 0.9"
- requests - requests
options: options:
database_name:
description:
- Name of the database.
required: true
state: state:
description: description:
- Determines if the database should be created or destroyed. - Determines if the database should be created or destroyed.
@ -107,6 +111,7 @@ def drop_database(module, client, database_name):
def main(): def main():
argument_spec = InfluxDb.influxdb_argument_spec() argument_spec = InfluxDb.influxdb_argument_spec()
argument_spec.update( argument_spec.update(
database_name=dict(required=True, type='str'),
state=dict(default='present', type='str', choices=['present', 'absent']) state=dict(default='present', type='str', choices=['present', 'absent'])
) )
module = AnsibleModule( module = AnsibleModule(

@ -25,6 +25,10 @@ requirements:
- "influxdb >= 0.9" - "influxdb >= 0.9"
- requests - requests
options: options:
database_name:
description:
- Name of the database.
required: true
policy_name: policy_name:
description: description:
- Name of the retention policy - Name of the retention policy
@ -165,6 +169,7 @@ def alter_retention_policy(module, client, retention_policy):
def main(): def main():
argument_spec = InfluxDb.influxdb_argument_spec() argument_spec = InfluxDb.influxdb_argument_spec()
argument_spec.update( argument_spec.update(
database_name=dict(required=True, type='str'),
policy_name=dict(required=True, type='str'), policy_name=dict(required=True, type='str'),
duration=dict(required=True, type='str'), duration=dict(required=True, type='str'),
replication=dict(required=True, type='int'), replication=dict(required=True, type='int'),

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

Loading…
Cancel
Save