openstack-ansible-ops/elk_metrics_7x/tests/inventory/test-container-inventory.yml
Duncan Martin Walker 4851e29e9c Subdivision of elastic-logstash group
It is currently assumed that the elasticsearch data nodes and the
logstash nodes are co-located within the same container during
deployment of the ELK stack. This commit is intended to remove that
assumption by requiring specification of separate elastic and
logstash groups. This is particularly important where instances of
elasticsearch and logstash are separated for resource reasons, a
common setup for an elastic cluster.

The default setup for the elastic nodes has been simplified, with
all non-coordinating nodes being both data and ingest nodes unless
otherwise specified. This was previously defined algorithmically,
with the elastic node setup tightly coupled to the placement of the
logstash instances.

Change-Id: Id06eb78b52705aefea9cfe1247f53bac58badd52
2020-03-18 16:44:58 +00:00

58 lines
1.4 KiB
YAML

---
# The hosts group is used to target physical host machines. Enter all physical
# host machines here.
hosts:
children:
physical_hosts:
hosts:
localhost:
ansible_host: 127.0.0.1
ansible_user: root
vars:
physical_host: localhost
management_cidr: "172.29.236.0/24"
container_networks:
management_address:
address: "172.29.236.1"
netmask: "255.255.255.0"
bridge: "{{ hostvars[physical_host]['ansible_default_ipv4']['alias'] }}"
all_containers:
vars:
physical_host: localhost
container_tech: nspawn
container_networks:
management_address:
address: "{{ ansible_host }}"
netmask: "255.255.255.0"
bridge: "{{ hostvars[physical_host]['ansible_default_ipv4']['alias'] }}"
# CI nodes havee limited resources, locking the memory is impossible.
elastic_memory_lock: false
children:
elastic:
children:
kibana:
hosts:
elastic0:
ansible_host: 172.29.236.100
ansible_user: root
elastic1:
ansible_host: 172.29.236.101
ansible_user: root
elastic2:
ansible_host: 172.29.236.102
ansible_user: root
logstash:
children:
kibana:
apm-server:
hosts:
apm0:
ansible_host: 172.29.236.120
ansible_user: root