15 lines
701 B
YAML
15 lines
701 B
YAML
plugin: constructed
|
|
strict: true
|
|
|
|
groups:
|
|
swarm_managers: group_names | intersect(['stingray_manager', 'stingray']) | length == 2
|
|
# haproxy only on the first manager.
|
|
# Using the special variable "groups" doesn't work here (probably because
|
|
# we're constructing it), so we can't do something like
|
|
# `inventory_hostname == groups['stringray_manager'][0]`
|
|
haproxy: group_names | intersect(['stingray_manager', 'stingray']) | length == 2 and
|
|
"-01" in inventory_hostname
|
|
swarm_workers: group_names | intersect(['stingray_worker', 'stingray']) | length == 2
|
|
gluster_nodes: group_names | intersect(['stingray']) | length == 1
|
|
swarm: group_names | intersect(['stingray']) | length == 1
|