influxdb_user

Manage InfluxDB 0.9-1.x users statefully.

Important

You can optionally specify default connection parameters via the general influxdb setup.

saltext.influxdb.states.influxdb_user.present(name, passwd, admin=False, grants=None, **client_args)[source]

Ensure that given user is present.

name

Name of the user to manage

passwd

Password of the user

adminFalse

Whether the user should have cluster administration privileges or not.

grants

Optional - Dict of database:privilege items associated with the user. Example:

grants:

foo_db: read bar_db: all

Example:

example user present in influxdb:
  influxdb_user.present:
    - name: example
    - passwd: somepassword
    - admin: False
    - grants:
        foo_db: read
        bar_db: all
saltext.influxdb.states.influxdb_user.absent(name, **client_args)[source]

Ensure that given user is absent.

name

The name of the user to manage