summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-09 07:22:57 +0000
committerGerrit Code Review <review@openstack.org>2016-06-09 07:22:57 +0000
commit65ce185c2bba5bb800b72884958d41496dabb609 (patch)
tree6bbef24284e873b1fd6fd97c718ca58e39dc7017
parent87280f92ebbd0c03c8d1c20d4cdda3dbbd935ee8 (diff)
parent929490ff8c06e6d34a6bba5078a2c97a0e20f8c8 (diff)
Merge "Wait for server to be ssh reachable before bootstrap/configuration"
-rw-r--r--site.yml1
-rw-r--r--wait_for_servers.yml10
2 files changed, 11 insertions, 0 deletions
diff --git a/site.yml b/site.yml
index 30bb760..956144d 100644
--- a/site.yml
+++ b/site.yml
@@ -1,6 +1,7 @@
1--- 1---
2# file: site.yml 2# file: site.yml
3- include: generate_infra_dynamic_groups.yml 3- include: generate_infra_dynamic_groups.yml
4- include: wait_for_servers.yml
4- include: common.yml 5- include: common.yml
5- include: set_hostnames.yml 6- include: set_hostnames.yml
6- include: bootstrap_puppetmaster.yml 7- include: bootstrap_puppetmaster.yml
diff --git a/wait_for_servers.yml b/wait_for_servers.yml
new file mode 100644
index 0000000..dc50857
--- /dev/null
+++ b/wait_for_servers.yml
@@ -0,0 +1,10 @@
1---
2# file: wait_for_servers.yml
3- hosts: localhost
4 connection: local
5 gather_facts: no
6 user: ubuntu
7 become: true
8 tasks:
9 - wait_for: port=22 host="{{ hostvars[item]['ansible_ssh_host'] }}" search_regex=OpenSSH delay=10
10 with_items: "{{ groups['infra'] }}"