Installs and configures open source InfluxDB.
None
- See the defaults
- The version of InfluxDB to install. Default:
1.6.0
- The full path to the influxdb.conf. Default:
/etc/influxdb/influxdb.conf
- The full path to the stderr log file. Default:
/var/log/influxdb/influxd-error.log
- The full path to the stdout log file. Default:
/var/log/influxdb/influxd-stdout.log
- The service name for influxdb. Default:
influxdb
- The full path to the startup config file. Default:
/etc/default/influxdb
- The default user that has write access to the stdout and stderr logs. Default.
influxdb
- The default group that has write access to the stdout and stderr logs. Default:
influxdb
- A dictionary hash for influxdb.conf settings, where a section is a dictionary key.
influxdb_config:
global:
'bind-address': '"127.0.0.1:8088"'
- That would create a section called
global
with the value"127.0.0.1:8088"
. - NOTE: Any value that requires quotes like above should always look like this.
- You can find the rest of the settings and what they mean on the InfluxDBdocs
- A hash of keys for configuring the internal/external yum repo for installing InfluxDB via a yum
- The default is:
influxdb_yum_repo:
state: present
enabled: true
baseurl: 'https://repos.influxdata.com/rhel/$releasever/$basearch/stable'
gpgcheck: true
gpgkey: 'https://repos.influxdata.com/influxdb.key'
- When
true
Ansible will attempt to install InfluxDB via the configured package manager. Default:true
- When
true
Ansible will attempt to install/configure the InfluxDB repository for the supported OS. Default:true
- When
true
Ansible will attempt to manage/configure the InfluxDB service. Default:true
- Installs, configures, and starts the influxdb service using all the defaults.
- hosts: servers
roles:
- role: codylane.influxdb
Example playbook with customized defaults (RHEL) only.
- hosts: servers
roles:
- role: codylane.influxdb
influxdb_yum_repo:
state: present
enabled: true
baseurl: 'https://myspecial.snowflake.repo/influxdb/$releasever/$basearch/stable'
gpgcheck: false
gpgkey: 'https://repos.influxdata.com/influxdb.key'
MIT
- Cody Lane