manala.influxdb
Ansible Role: InfluxDB 
:exclamation: Report any issues and submit Pull Requests to the main Ansible Role repository :exclamation:
This role is designed to set up InfluxDB.
It's part of the Manala Ansible stack but can also be used independently.
Requirements
This role works with the influxdata InfluxDB Debian packages. Please use the manala.apt role to manage it correctly.
manala_apt_preferences:
- influxdb@influxdata
Dependencies
None.
Supported InfluxDB Versions
0.13.0 and above.
Installation
Ansible 2+
Using the Ansible Galaxy command line:
ansible-galaxy install manala.influxdb
Or using an Ansible Galaxy requirements file:
- src: manala.influxdb
Role Handlers
Name | Type | Description |
---|---|---|
influxdb restart |
Service | Restarts the InfluxDB server |
Role Variables
Name | Default | Type | Description |
---|---|---|---|
manala_influxdb_install_packages |
~ | Array | Packages to install |
manala_influxdb_install_packages_default |
['influxdb'] | Array | Default packages to install |
manala_influxdb_dir |
[] | Array | InfluxDB directories |
manala_influxdb_databases |
[] | Array | Databases to create |
manala_influxdb_users |
[] | Array | Users to create |
manala_influxdb_privileges |
[] | Array | User privileges |
manala_influxdb_config |
~ | Array/String | Configuration settings |
manala_influxdb_config_file |
'/etc/influxdb/influxdb.conf' | String | Path to the configuration file |
manala_influxdb_config_template |
'config/base.conf.j2' | String | Path to configuration template |
Example Configuration
Use the default InfluxDB config template (recommended):
manala_influxdb_config_template: config/influxdata/influxdb.conf.j2
manala_influxdb_config:
reporting-disabled: true
meta:
dir: /srv/db/influxdb/meta
http:
enabled: true
udp:
- enabled: true
bind-address: :8090
database: app
Using dictionary parameters:
manala_influxdb_config:
reporting-disabled: true
meta:
dir: /srv/db/influxdb/meta
http:
enabled: true
udp:
- enabled: true
bind-address: :8090
database: app
Using raw configuration:
manala_influxdb_config: |
reporting-disabled = true
[meta]
dir = "/srv/db/influxdb/meta"
[http]
enabled = true
[[udp]]
enabled = true
bind-address = ":8090"
database = "app"
Using deprecated array parameters:
manala_influxdb_config:
- reporting-disabled: true
- meta:
- dir: /srv/db/influxdb/meta
- http:
- enabled: true
- udp:
- enabled: true
- bind-address: :8090
- database: app
Databases, Users & Privileges:
manala_influxdb_databases:
- my_db
manala_influxdb_users:
- database: my_db
name: my_user
password: my_password
manala_influxdb_privileges:
- database: my_db
user: my_user
grant: ALL
For more information about databases and users and privileges, check the InfluxDB documentation.
Example Playbook
- hosts: servers
roles:
- role: manala.influxdb
License
MIT
Author Information
Manala (http://www.manala.io/)
Installa
ansible-galaxy install manala.influxdb
Licenza
Unknown
Download
71.2k
Proprietario
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.