Vasyl Saienko | 98a274b | 2018-08-31 13:53:16 +0000 | [diff] [blame] | 1 | {%- from "keystone/map.jinja" import server,client with context %} |
root | d9ccafe | 2018-08-20 09:20:11 +0000 | [diff] [blame] | 2 | |
| 3 | keystone_post: |
| 4 | test.show_notification: |
| 5 | - text: "Running keystone.upgrade.post" |
| 6 | |
| 7 | {%- if server.enabled %} |
| 8 | |
| 9 | keystone_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 Saienko | 98a274b | 2018-08-31 13:53:16 +0000 | [diff] [blame] | 16 | |
| 17 | {%- if client.get('os_client_config', {}).get('enabled') %} |
| 18 | keystone_delete_os_client_config: |
| 19 | module.run: |
| 20 | - name: mine.delete |
| 21 | - m_fun: keystone_os_client_config |
Vasyl Saienko | 52bed88 | 2018-09-10 10:52:39 +0000 | [diff] [blame^] | 22 | {%- else %} |
| 23 | keystone_os_client_config_absent: |
| 24 | file.absent: |
| 25 | - name: /etc/openstack/clouds.yml |
Vasyl Saienko | 98a274b | 2018-08-31 13:53:16 +0000 | [diff] [blame] | 26 | {%- endif %} |