Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 994 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 994 Bytes

Ansible Role: InfluxDB v2 User

Ansible's influxdb_* modules do not support InfluxDB v2 as they are based on https://github.com/influxdata/influxdb-python:

Note: This library is for use with InfluxDB 1.x. For connecting to InfluxDB 2.x instances, please use the the influxdb-client-python client.

Required Input Variables

influxdb_v2_user_url: http://localhost:8086
influxdb_v2_user_url_username: admin
influxdb_v2_user_url_password: admin-password
influxdb_v2_user_name: new-user

Optional Input Variables

influxdb_v2_user_fetch_authorizations: true # default: false
influxdb_v2_user_authorizations_overwrite: # or _append
- organization_id: 0123456789abcdef
  permissions:
  - action: write
    resource:
      orgID: 0123456789abcdef
      org: some-organization
      type: buckets

Output Variables

influxdb_v2_user_id
influxdb_v2_user_authorizations # when influxdb_v2_user_fetch_authorizations true
influxdb_v2_user_url_cookies_string