Ansible collection to manage InfluxDBv2 repository and setup.
Read more about InfluxDBv2 in the official documentation.
ansible-galaxy collection install tbauriedel.influxdb2
- Role: repos - Install the official InfluxDb repositories
- Role: influxdb2 - Install and configure InfluxDBv2
- Module: influxdb2_organization: Create, update and delete InfluxDBv2 organizations
- Module: influxdb2_bucket: Create, update and delete InfluxDBv2 buckets
- name: InfluxDB
hosts: all
vars:
influxdb_influxdb2_admin_token: 123456789abc!
influxdb_influxdb2_orgs:
- name: org1
desc: "This is a description"
token: "{{ influxdb_influxdb2_admin_token }}"
influxdb_influxdb2_buckets:
- name: bucket-1
desc: "This is a description"
org: org1
token: "{{ influxdb_influxdb2_admin_token }}"
retention:
type: 'expire'
everySeconds: '60000'
shardGroupDurationSeconds: '7600'
collections:
- tbauriedel.influxdb2
roles:
- repos
- influxdb2
Distribution | Tested on |
---|---|
Ubuntu | 22.04 |
Rocky | 9 |
Not all components of the go-graphite project are currently managed with that collection.
Also not every configuration possibility are implemented for the already existing roles.
New stuff will be added setp by step, wgen the need arises. If you want to use this ansible collection but something is missing, you are welcome to create a PR with the necessary settings!