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
This commit is contained in:
Sam Yaple 2015-09-07 12:04:28 +00:00
parent efea3b3f1b
commit c68c9d95fc
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
---
- include: config.yml
when: inventory_hostname in groups['haproxy']
- include: start.yml
when: inventory_hostname in groups['haproxy']

View File

@ -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 }