Przeglądaj źródła

add pauses to avoid service restarts from interfering with initial startup bootstrapping

Jason DeTiberus 9 lat temu
rodzic
commit
f831779404

+ 3 - 1
roles/etcd/tasks/main.yml

@@ -46,5 +46,7 @@
     name: etcd
     state: started
     enabled: yes
+  register: start_result
 
-- pause: seconds=10
+- pause: seconds=30
+  when: start_result | changed

+ 5 - 0
roles/openshift_master/tasks/main.yml

@@ -114,6 +114,11 @@
 
 - name: Start and enable openshift-master
   service: name=openshift-master enabled=yes state=started
+  register: start_result
+
+- name: pause to prevent service restart from interfering with bootstrapping
+  pause: seconds=30
+  when: start_result | changed
 
 - name: Create the OpenShift client config dir(s)
   file: