2020-03-09 10:11:07 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2022-08-05 13:17:19 +02:00
|
|
|
# Copyright (c) 2017, Ansible Project
|
|
|
|
# Copyright (c) 2017, Abhijeet Kasurde (akasurde@redhat.com)
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-03-09 10:11:07 +01:00
|
|
|
|
2020-06-24 21:50:36 +02:00
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
|
|
|
|
2020-03-09 10:11:07 +01:00
|
|
|
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
# Parameters for influxdb modules
|
|
|
|
DOCUMENTATION = r'''
|
|
|
|
options:
|
|
|
|
hostname:
|
|
|
|
description:
|
|
|
|
- The hostname or IP address on which InfluxDB server is listening.
|
|
|
|
- Since Ansible 2.5, defaulted to localhost.
|
|
|
|
type: str
|
|
|
|
default: localhost
|
|
|
|
username:
|
|
|
|
description:
|
|
|
|
- Username that will be used to authenticate against InfluxDB server.
|
|
|
|
- Alias C(login_username) added in Ansible 2.5.
|
|
|
|
type: str
|
|
|
|
default: root
|
|
|
|
aliases: [ login_username ]
|
|
|
|
password:
|
|
|
|
description:
|
|
|
|
- Password that will be used to authenticate against InfluxDB server.
|
|
|
|
- Alias C(login_password) added in Ansible 2.5.
|
|
|
|
type: str
|
|
|
|
default: root
|
|
|
|
aliases: [ login_password ]
|
|
|
|
port:
|
|
|
|
description:
|
|
|
|
- The port on which InfluxDB server is listening
|
|
|
|
type: int
|
|
|
|
default: 8086
|
|
|
|
path:
|
|
|
|
description:
|
|
|
|
- The path on which InfluxDB server is accessible
|
2020-11-06 09:12:00 +01:00
|
|
|
- Only available when using python-influxdb >= 5.1.0
|
2020-03-09 10:11:07 +01:00
|
|
|
type: str
|
2020-06-13 15:01:19 +02:00
|
|
|
version_added: '0.2.0'
|
2020-03-09 10:11:07 +01:00
|
|
|
validate_certs:
|
|
|
|
description:
|
2022-08-24 20:46:40 +02:00
|
|
|
- If set to C(false), the SSL certificates will not be validated.
|
|
|
|
- This should only set to C(false) used on personally controlled sites using self-signed certificates.
|
2020-03-09 10:11:07 +01:00
|
|
|
type: bool
|
2022-08-24 20:46:40 +02:00
|
|
|
default: true
|
2020-03-09 10:11:07 +01:00
|
|
|
ssl:
|
|
|
|
description:
|
|
|
|
- Use https instead of http to connect to InfluxDB server.
|
|
|
|
type: bool
|
2020-11-23 12:14:43 +01:00
|
|
|
default: false
|
2020-03-09 10:11:07 +01:00
|
|
|
timeout:
|
|
|
|
description:
|
|
|
|
- Number of seconds Requests will wait for client to establish a connection.
|
|
|
|
type: int
|
|
|
|
retries:
|
|
|
|
description:
|
|
|
|
- Number of retries client will try before aborting.
|
|
|
|
- C(0) indicates try until success.
|
2020-11-06 09:12:00 +01:00
|
|
|
- Only available when using python-influxdb >= 4.1.0
|
2020-03-09 10:11:07 +01:00
|
|
|
type: int
|
|
|
|
default: 3
|
|
|
|
use_udp:
|
|
|
|
description:
|
|
|
|
- Use UDP to connect to InfluxDB server.
|
|
|
|
type: bool
|
2020-11-23 12:14:43 +01:00
|
|
|
default: false
|
2020-03-09 10:11:07 +01:00
|
|
|
udp_port:
|
|
|
|
description:
|
|
|
|
- UDP port to connect to InfluxDB server.
|
|
|
|
type: int
|
|
|
|
default: 4444
|
|
|
|
proxies:
|
|
|
|
description:
|
|
|
|
- HTTP(S) proxy to use for Requests to connect to InfluxDB server.
|
|
|
|
type: dict
|
|
|
|
'''
|