diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2017-01-17 15:50:30 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2017-01-19 11:00:07 -0400 |
commit | 67972f33b0f380ae0ddf888389c0419ffa17c7a8 (patch) | |
tree | 3f6a5b50a46604d3071d992ef7e2eec1bf28f177 /playbooks/common/openshift-cluster/upgrades | |
parent | 2c91510d4ce3baa92e8e054223659e4e3fa5dbcd (diff) | |
download | openshift-67972f33b0f380ae0ddf888389c0419ffa17c7a8.tar.gz openshift-67972f33b0f380ae0ddf888389c0419ffa17c7a8.tar.bz2 openshift-67972f33b0f380ae0ddf888389c0419ffa17c7a8.tar.xz openshift-67972f33b0f380ae0ddf888389c0419ffa17c7a8.zip |
Run user provided hooks prior to system/service restarts.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml index 59e5010f5..538d0942f 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml @@ -108,15 +108,16 @@ state: link when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists + # NOTE: We run user provided hooks prior to restarting the system or services. + - include: "{{ openshift_upgrade_post_master_hook }}" + when: openshift_upgrade_post_master_hook is defined + - include: ../../openshift-master/restart_hosts.yml when: openshift.common.rolling_restart_mode == 'system' - include: ../../openshift-master/restart_services.yml when: openshift.common.rolling_restart_mode == 'services' - - include: "{{ openshift_upgrade_post_master_hook }}" - when: openshift_upgrade_post_master_hook is defined - - set_fact: master_update_complete: True |