aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-09-07 12:04:28 +0000
committerSam Yaple <sam@yaple.net>2015-09-07 12:04:28 +0000
commitc68c9d95fca6485c79a607b3716a88e284c7a64e (patch)
tree751b4d879a57f63918ac77df7a385d1cc0ba4a4a /ansible
parentefea3b3f1baa42378ae15082b99b5ce10b4d7758 (diff)
downloadkolla-c68c9d95fca6485c79a607b3716a88e284c7a64e.tar.gz
kolla-c68c9d95fca6485c79a607b3716a88e284c7a64e.zip
Gather facts from the hosts before using them
Haproxy needs to have gathered facts from all hosts that it will use information about. In this case it must talk to all of the api hosts as well as the database and rabbitmq hosts before generating the configuration file. Change-Id: I99b7dbebd5a6193e192ee258ddf576d18db90ed7 Closes-Bug: #1482406
Diffstat (limited to 'ansible')
-rwxr-xr-xansible/roles/haproxy/tasks/main.yml2
-rwxr-xr-xansible/site.yml2
2 files changed, 3 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/tasks/main.yml b/ansible/roles/haproxy/tasks/main.yml
index 1f16915ad..ab9215b16 100755
--- a/ansible/roles/haproxy/tasks/main.yml
+++ b/ansible/roles/haproxy/tasks/main.yml
@@ -1,4 +1,6 @@
---
- include: config.yml
+ when: inventory_hostname in groups['haproxy']
- include: start.yml
+ when: inventory_hostname in groups['haproxy']
diff --git a/ansible/site.yml b/ansible/site.yml
index 6eeafed36..b2aa134c9 100755
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -1,5 +1,5 @@
---
-- hosts: haproxy
+- hosts: [haproxy, mariadb, rabbitmq, cinder-api, glance-api, keystone, nova-api, neutron-server, swift-proxy-server]
roles:
- { role: haproxy, tags: haproxy, keepalived, when: enable_haproxy | bool }