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:
parent
efea3b3f1b
commit
c68c9d95fc
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
- include: config.yml
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['haproxy']
|
||||||
|
|
||||||
- include: start.yml
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['haproxy']
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: haproxy
|
- hosts: [haproxy, mariadb, rabbitmq, cinder-api, glance-api, keystone, nova-api, neutron-server, swift-proxy-server]
|
||||||
roles:
|
roles:
|
||||||
- { role: haproxy, tags: haproxy, keepalived, when: enable_haproxy | bool }
|
- { role: haproxy, tags: haproxy, keepalived, when: enable_haproxy | bool }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user