blob: 70f9bf193d5455e4ec600cb4c2bff8d65e53f4cf [file] [log] [blame]
Vasyl Saienko98a274b2018-08-31 13:53:16 +00001{%- from "keystone/map.jinja" import server,client with context %}
rootd9ccafe2018-08-20 09:20:11 +00002
3keystone_post:
4 test.show_notification:
5 - text: "Running keystone.upgrade.post"
6
7{%- if server.enabled %}
8
9keystone_doctor:
10 cmd.run:
11 - name: keystone-manage doctor
12 {%- if grains.get('noservices') or server.get('role', 'primary') == 'secondary' %}
13 - onlyif: /bin/false
14 {%- endif %}
15{%- endif %}
Vasyl Saienko98a274b2018-08-31 13:53:16 +000016
17{%- if client.get('os_client_config', {}).get('enabled') %}
18keystone_delete_os_client_config:
19 module.run:
20 - name: mine.delete
21 - m_fun: keystone_os_client_config
Vasyl Saienko52bed882018-09-10 10:52:39 +000022{%- else %}
23keystone_os_client_config_absent:
24 file.absent:
25 - name: /etc/openstack/clouds.yml
Vasyl Saienko98a274b2018-08-31 13:53:16 +000026{%- endif %}