Skip to content

fphammerle/ansible-role-influxdb-v2-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Create InfluxDB User via v2 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published