From 67972f33b0f380ae0ddf888389c0419ffa17c7a8 Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Tue, 17 Jan 2017 15:50:30 -0400 Subject: Run user provided hooks prior to system/service restarts. --- .../common/openshift-cluster/upgrades/upgrade_control_plane.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'playbooks') 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 -- cgit v1.2.3