openstack-ansible-ops/elk_metrics_7x/env.d/elk.yml
Erik Berg 7dd097344f Fix elk 7 {conf,env}.d sample
Neither elastic nor logstash elements were present in container_skel
while they were referenced in component_skel which is not valid for
dynamic_inventory. So attempt to generate it resulted in:
KeyError: 'elastic-logstash' here [1]

Also elaborate more on conf.env sample as per the intents of
https://review.opendev.org/c/openstack/openstack-ansible-ops/+/707849

[1] https://opendev.org/openstack/openstack-ansible/src/branch/master/osa_toolkit/generate.py#L266

Change-Id: I74a4788ff25c5ef45c064d1f8309002b1731ad7a
2021-03-01 08:15:32 +00:00

76 lines
1.3 KiB
YAML

---
component_skel:
apm-server:
belongs_to:
- elk_all
- apm_all
elastic:
belongs_to:
- elk_all
logstash:
belongs_to:
- elk_all
kibana:
belongs_to:
- elk_all
container_skel:
apm-server_container:
belongs_to:
- apm-server_containers
contains:
- apm-server
elastic-logstash_container:
belongs_to:
- elastic-logstash_containers
contains:
- elastic
- logstash
elastic_container:
belongs_to:
- elastic_containers
contains:
- elastic
logstash_container:
belongs_to:
- logstash_containers
contains:
- logstash
kibana_container:
belongs_to:
- kibana_containers
contains:
- kibana
physical_skel:
apm-server_containers:
belongs_to:
- all_containers
apm-server_hosts:
belongs_to:
- hosts
elastic-logstash_containers:
belongs_to:
- all_containers
elastic-logstash_hosts:
belongs_to:
- hosts
elastic_containers:
belongs_to:
- all_containers
elastic_hosts:
belongs_to:
- hosts
logstash_containers:
belongs_to:
- all_containers
logstash_hosts:
belongs_to:
- hosts
kibana_containers:
belongs_to:
- all_containers
kibana_hosts:
belongs_to:
- hosts