openstack-ansible-ops/elk_metrics_7x/tests/inventory/test-container-inventory.yml
Dmitriy Rabotyagov 1d52793ec6 Allow ELK7 roles to run with disabled ANSIBLE_INJECT_FACT_VARS
Enabling ANSIBLE_INJECT_FACT_VARS does result in a performance
regression as each variable loaded to runtime slows down task
execution.

We disable ANSIBLE_INJECT_FACT_VARS in OSA by default for a while,
so ELK role should also be able to run with this setting disabled.

Change-Id: Ibffc09cdb4f9289ddad38211ccb0265642b4321f
2024-11-11 13:07:31 +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_facts']['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_facts']['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