Fix etcd standalone deployment

etcd facts are generated in kubernetes/preinstall, so etcd nodes need
to be evaluated first before the rest of the deployment.

Moved several directory facts from kubernetes/node to
kubernetes/preinstall because they are not backward dependent.
This commit is contained in:
Matthew Mosesohn
2016-07-26 16:18:47 +03:00
parent af4c41f32e
commit 1b1f5f22d4
7 changed files with 39 additions and 24 deletions

View File

@@ -18,7 +18,7 @@
when: ansible_service_mgr == "systemd"
- name: wait for etcd up
uri: url=http://localhost:2379/health
uri: url="http://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health"
register: result
until: result.status == 200
retries: 10