summaryrefslogtreecommitdiffstats
path: root/roles/fluentd_master/tasks
diff options
context:
space:
mode:
authorStefanie Forrester <sedgar@redhat.com>2015-08-24 13:48:13 -0700
committerStefanie Forrester <sedgar@redhat.com>2015-09-02 10:44:42 -0700
commit21596a2dd2ef0239592f9376223a993cab5e9944 (patch)
treef4457e114c7c25886fbd9458c63ba5346f25fa11 /roles/fluentd_master/tasks
parenta52fb4dee40155e76131927232940d77e2913568 (diff)
downloadopenshift-21596a2dd2ef0239592f9376223a993cab5e9944.tar.gz
openshift-21596a2dd2ef0239592f9376223a993cab5e9944.tar.bz2
openshift-21596a2dd2ef0239592f9376223a993cab5e9944.tar.xz
openshift-21596a2dd2ef0239592f9376223a993cab5e9944.zip
wait for ports instead of waiting for an arbitrary period of time
Diffstat (limited to 'roles/fluentd_master/tasks')
-rw-r--r--roles/fluentd_master/tasks/main.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/fluentd_master/tasks/main.yml b/roles/fluentd_master/tasks/main.yml
index d592dc306..69f8eceab 100644
--- a/roles/fluentd_master/tasks/main.yml
+++ b/roles/fluentd_master/tasks/main.yml
@@ -39,8 +39,13 @@
owner: 'td-agent'
mode: 0444
-- name: "Pause before restarting td-agent and openshift-master, depending on the number of nodes."
- pause: seconds={{ ( num_nodes|int < 3 ) | ternary(15, (num_nodes|int * 5)) }}
+- name: wait for etcd to start up
+ wait_for: port=4001 delay=10
+ when: embedded_etcd | bool
+
+- name: wait for etcd peer to start up
+ wait_for: port=7001 delay=10
+ when: embedded_etcd | bool
- name: ensure td-agent is running
service: