gf-permissions.yml 668 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Create grafana user on htpasswd
  3. htpasswd:
  4. path: /etc/origin/master/htpasswd
  5. name: "{{ grafana_user }}"
  6. password: "{{ grafana_password }}"
  7. - name: Set htpasswd provider for master-config
  8. yedit:
  9. src: /etc/origin/master/master-config.yaml
  10. edits:
  11. - key: a.identityProviders
  12. update: true
  13. value:
  14. - challenge: true
  15. login: true
  16. mappingMethod: claim
  17. name: allow_all
  18. provider:
  19. apiVersion: v1
  20. kind: HTPasswdPasswordIdentityProvider
  21. file: /etc/origin/master/htpasswd
  22. - name: Restart mater api
  23. command: systemctl restart atomic-openshift-master-api.service