Set up (the latest version of) InfluxDB in Debian-like systems.
software-properties-common
(will be installed)dirmngr
(will be installed)apt-transport-https
(will be installed)curl
(will be installed)
-
influxdb_install
: [default:[]
]: Additional packages to install -
influxdb_user
: [default:influxdb
]: User to run daemon as -
influxdb_group
: [default:influxdb
]: Group to run daemon as -
influxdb_meta_dir
: [default:/var/lib/influxdb/meta
]: Meta directory -
influxdb_data_dir
: [default:/var/lib/influxdb/data
]: Data directory -
influxdb_data_wall_dir
: [default:/var/lib/influxdb/wal
]: Write-ahead logging (WAL) directory -
influxdb_etc_default
: [default:
[]]: Content (lines) of
/etc/default/influxdb` -
influxdb_etc_influxdb_influxdb_conf
: [see:defaults/main.yml]: Content (lines) of
/etc/influxdb/influxdb.conf` (see) -
influxdb_databases_present
: [default:[]
]: Databases toCREATE
-
influxdb_databases_present.{n}.name
: [required]: The name of the database -
influxdb_databases_present.{n}.duration
: [optional]: Determines how long InfluxDB keeps the data (e.g.1d
,INF
) -
influxdb_databases_absent
: [default:[{name: test}]
]: Databases toDROP
-
influxdb_databases_absent.{n}.name
: [required]: The name of the database -
influxdb_collectd_users
: [default:[]
]: Collectd users -
influxdb_collectd_users.{n}.username
: [required]: Username -
influxdb_collectd_users.{n}.password
: [required]: Password
None
---
- hosts: all
roles:
- oefenweb.influxdb
---
- hosts: all
roles:
- oefenweb.influxdb
vars:
influxdb_etc_influxdb_influxdb_conf:
- |
bind-address = "127.0.0.1:8088"
[meta]
dir = "{{ influxdb_meta_dir }}"
[data]
dir = "{{ influxdb_data_dir }}"
wal-dir = "{{ influxdb_data_wal_dir }}"
---
- hosts: all
roles:
- oefenweb.influxdb
vars:
influxdb_etc_influxdb_influxdb_conf:
- |
bind-address = "127.0.0.1:8088"
[meta]
dir = "{{ influxdb_meta_dir }}"
[data]
dir = "{{ influxdb_data_dir }}"
wal-dir = "{{ influxdb_data_wal_dir }}"
[[collectd]]
enabled = true
bind-address = ":25826"
database = "collectd"
typesdb = "/usr/share/collectd/types.db"
security-level = "encrypt"
auth-file = "{{ influxdb_collectd_auth_file }}"
influxdb_collectd_users:
- username: foo
password: bar
MIT
- Mark van Driel
- Mischa ter Smitten
Are welcome!