12345678910111213141516171819202122232425 |
- ---
- - name: Create grafana user on htpasswd
- htpasswd:
- path: /etc/origin/master/htpasswd
- name: "{{ grafana_user }}"
- password: "{{ grafana_password }}"
- - name: Set htpasswd provider for master-config
- yedit:
- src: /etc/origin/master/master-config.yaml
- edits:
- - key: a.identityProviders
- update: true
- value:
- - challenge: true
- login: true
- mappingMethod: claim
- name: allow_all
- provider:
- apiVersion: v1
- kind: HTPasswdPasswordIdentityProvider
- file: /etc/origin/master/htpasswd
- - name: Restart mater api
- command: systemctl restart atomic-openshift-master-api.service
|