Browse Source

Run user provided hooks prior to system/service restarts.

Devan Goodwin 8 years ago
parent
commit
67972f33b0

+ 4 - 3
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