Make rabbitmq inventory group configurable
The default value of "rabbitmq_all" remains, but this change should allow deployers to target the role to multiple groups now. Change-Id: Idc1bc44b005f09f9dc7eb9778719a8ba92756c06 Implements: blueprint multi-rabbitmq-clusters
This commit is contained in:
@@ -4,10 +4,10 @@ container1 ansible_ssh_host=10.100.100.101 ansible_host=10.100.100.101 ansible_b
|
||||
container2 ansible_ssh_host=10.100.100.102 ansible_host=10.100.100.102 ansible_become=True ansible_user=root
|
||||
container3 ansible_ssh_host=10.100.100.103 ansible_host=10.100.100.103 ansible_become=True ansible_user=root
|
||||
|
||||
[rabbitmq_all]
|
||||
[rabbitmq_all_other]
|
||||
container1
|
||||
container2
|
||||
container3
|
||||
|
||||
[all_containers:children]
|
||||
rabbitmq_all
|
||||
rabbitmq_all_other
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# NOTE(mancdaz): rabbitmq cannot be upgraded in serial, so when
|
||||
# rabbitmq_upgrade=True, serial is set to 0, else it is 1 for installs
|
||||
- name: Install RabbitMQ server
|
||||
hosts: rabbitmq_all
|
||||
hosts: "{{ rabbitmq_host_group }}"
|
||||
serial: "{{ rabbitmq_upgrade|default(false) | bool | ternary(0, 1)}}"
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Run functional tests
|
||||
hosts: rabbitmq_all
|
||||
hosts: "{{ rabbitmq_host_group }}"
|
||||
user: root
|
||||
gather_facts: true
|
||||
vars_files:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
rabbitmq_host_group: "rabbitmq_all_other"
|
||||
rabbitmq_cookie_token: secrete
|
||||
rabbitmq_ssl_cert: /etc/rabbitmq/rabbitmq.pem
|
||||
rabbitmq_ssl_key: /etc/rabbitmq/rabbitmq.key
|
||||
|
||||
Reference in New Issue
Block a user