Skip to content

tbauriedel/ansible-collection-influxdb2

Repository files navigation

Lint Build

ansible-collection-influxdb2

Ansible collection to manage InfluxDBv2 repository and setup.
Read more about InfluxDBv2 in the official documentation.

Installation

ansible-galaxy collection install tbauriedel.influxdb2

Roles

Modules

Example

- 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

Supported systems

Distribution Tested on
Ubuntu 22.04
Rocky 9

Contribution

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!