salt.states.grafana4_user module

Manage Grafana v4.0 users

New in version 2017.7.0.

Token auth setup

grafana_version: 4
grafana:
  grafana_timeout: 5
  grafana_token: qwertyuiop
  grafana_url: 'https://url.com'

Basic auth setup

grafana_version: 4
grafana:
  grafana_timeout: 5
  grafana_user: grafana
  grafana_password: qwertyuiop
  grafana_url: 'https://url.com'
Ensure foobar user is present:
  grafana4_user.present:
    - name: foobar
    - password: mypass
    - email: "foobar@localhost"
    - fullname: Foo Bar
    - is_admin: true
salt.states.grafana4_user.absent(name, profile='grafana')

Ensure that a user is present.

name
Name of the user to remove.
profile
Configuration profile used to connect to the Grafana instance. Default is 'grafana'.
salt.states.grafana4_user.present(name, password, email, is_admin=False, fullname=None, theme=None, profile='grafana')

Ensure that a user is present.

name
Name of the user.
password
Password of the user.
email
Email of the user.
is_admin
Optional - Set user as admin user. Default: False
fullname
Optional - Full name of the user.
theme
Optional - Selected theme of the user.
profile
Configuration profile used to connect to the Grafana instance. Default is 'grafana'.