Merge "Do not run tripleo_ha_wrapper when the HA service has no config_volume"
This commit is contained in:
commit
e22bfd5f47
|
@ -56,6 +56,11 @@
|
||||||
changed_when: puppet_run.rc == 2
|
changed_when: puppet_run.rc == 2
|
||||||
failed_when: puppet_run.rc != 2 and puppet_run.rc != 0
|
failed_when: puppet_run.rc != 2 and puppet_run.rc != 0
|
||||||
|
|
||||||
|
- name: "Check if {{ tripleo_ha_wrapper_config_basedir }}/{{ tripleo_ha_wrapper_puppet_config_volume }} exists"
|
||||||
|
stat:
|
||||||
|
path: "{{ tripleo_ha_wrapper_config_basedir }}/{{ tripleo_ha_wrapper_puppet_config_volume }}.md5sum"
|
||||||
|
register: config_volume_md5
|
||||||
|
|
||||||
- name: Run pacemaker restart if the config file for the service changed
|
- name: Run pacemaker restart if the config file for the service changed
|
||||||
tripleo_diff_exec:
|
tripleo_diff_exec:
|
||||||
command: >-
|
command: >-
|
||||||
|
@ -66,3 +71,5 @@
|
||||||
state_file_suffix: "{{ tripleo_ha_wrapper_config_suffix }}"
|
state_file_suffix: "{{ tripleo_ha_wrapper_config_suffix }}"
|
||||||
environment:
|
environment:
|
||||||
TRIPLEO_MINOR_UPDATE: "{{ tripleo_ha_wrapper_minor_update|default('') }}"
|
TRIPLEO_MINOR_UPDATE: "{{ tripleo_ha_wrapper_minor_update|default('') }}"
|
||||||
|
when:
|
||||||
|
- (config_volume_md5.stat.exists | bool)
|
||||||
|
|
Loading…
Reference in New Issue