InfluxDB 2.0 with TLS Ansible role

InfluxDB 2.0 is a departure from InfluxDB 1.x architecture. Additional required configurations and components renaming has created breaking changes in existing Ansible’s InfluxDB modules and roles. Therefore a need to automate the InfluxDB 2.0 via Ansible role was imminent. This is one such attempt to simplify the process of running InfluxDB 2.0 with TLS.

This role can be used by setting up configuration variables in the defaults. It also generates self signed certificates if needed or one can provide their own. It does initial setup of InfluxDB 2.0 by using CLI commands as well as creating buckets. It also generates authentication Token and activates it to be used via REST API.

It also have molecule test suite added that checks the role by running inside Docker container.

This role is in early stage and further changes are expected, hence any and all feedback will be appreciated.

Link to the repo:

The Ansible Role is licensed under GPL.

@Mamoona_Aslam many thanks for this contribution. Let me flag with the internal team as a discussion point. It could be a good blog for us to deliver.

1 Like