1
0
Fork 0
mirror of synced 2024-11-22 08:55:35 -05:00
formula-grafana/grafana/client/user.sls
Dmitry Kalashnik 0bd35ea2f3 Add grafana admin password management
Change-Id: Ia706ca4d756ee26b0876bced24d6d961a64cb4ee
Closes-Bug: PROD-17909
2018-10-17 11:59:24 +04:00

18 lines
631 B
Text

{%- from "grafana/map.jinja" import client with context %}
grafana_admin_user_{{ client.server.user }}_present:
grafana4_user.present:
- name: {{ client.server.user }}
- password: {{ client.server.password }}
- email: "{{ client.server.user }}@localhost"
- fullname: {{ client.server.user }}
- is_admin: true
grafana_admin_user_{{ client.server.user }}_update_password:
module.run:
- name: grafana4.update_user_password
- userid: {{ client.server.user_id }}
- kwargs:
password: {{ client.server.password }}
- require:
- grafana4_user: grafana_admin_user_{{ client.server.user }}_present