Explorar o código

take number of nodes into account when pausing

Stefanie Forrester %!s(int64=9) %!d(string=hai) anos
pai
achega
17dedcf5be
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      roles/fluentd_master/tasks/main.yml

+ 2 - 2
roles/fluentd_master/tasks/main.yml

@@ -39,8 +39,8 @@
     owner: 'td-agent'
     mode: 0444
 
-- name: "Pause before restarting td-agent, since openshift-master needs more time to start"
-  pause: seconds=20
+- name: "Pause before restarting td-agent and openshift-master, depending on the number of nodes."
+  pause: seconds={{ num_nodes|int * 5 }}
 
 - name: ensure td-agent is running
   service: