Update overlay inventory to resovle circular dep

This change adds the metering sub group and points all of our systems at
that instead of assuming they can all be built on "hosts" and
"log_hosts".

Change-Id: I3cb951456f82090fad1b02cda470055691c0ae35
Signed-off-by: cloudnull <kevin@cloudnull.com>
This commit is contained in:
cloudnull 2019-02-11 12:23:39 -06:00 committed by Kevin Carter (cloudnull)
parent a7e03710a5
commit e4d7244219

View File

@ -10,7 +10,21 @@ all_systems:
children: children:
all_hosts: all_hosts:
children: children:
hosts: {} physical_hosts:
children:
hosts: {}
all_metering:
children:
metering:
children:
metering_ui_targets:
children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited.
metering_infra_targets:
children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited.
systems: systems:
vars: vars:
@ -85,8 +99,8 @@ all_systems:
traefik_all: traefik_all:
children: children:
traefik_build_nodes: traefik_build_nodes:
hosts: {}
vars: {} vars: {}
hosts: {}
children: {} children: {}
skydive_all: skydive_all:
@ -101,72 +115,69 @@ all_systems:
skydive_agents: skydive_agents:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
skydive_analyzers: skydive_analyzers:
children: children:
utility_all: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}
elk_all: elk_all:
vars: vars:
elastic_skydive_retention: 2 # Elastic retention set to 2 days max elastic_skydive_retention: 2 # Elastic retention set to 2 days max
elastic_skydive_size: 51200 # Elastic retention set to 50GiB max elastic_skydive_size: 51200 # Elastic retention set to 50GiB max
elastic_setup_flags:
- "--template"
- "--pipelines"
- "--machine-learning"
children: children:
elastic-logstash_all: elastic-logstash_all:
children: children:
elastic-logstash: elastic-logstash:
children: children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_infra_targets: {}
kibana_all: kibana_all:
children: children:
kibana: kibana:
children: children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}
beats_all: beats_all:
vars: vars:
elastic_retention_refresh: true elastic_retention_refresh: true
auditbeat_service_state: "{{ (inventory_hostname in (groups['hosts'] | default([]))) | ternary('restarted', 'stopped') }}" auditbeat_service_state: "{{ (inventory_hostname in (groups['auditbeat'] | default([]))) | ternary('restarted', 'stopped') }}"
filebeat_service_state: "{{ (inventory_hostname in (groups['hosts'] | default([]))) | ternary('restarted', 'stopped') }}" filebeat_service_state: "{{ (inventory_hostname in (groups['filebeat'] | default([]))) | ternary('restarted', 'stopped') }}"
heartbeat_service_state: "{{ (inventory_hostname in (groups['kibana_all'] | default([]))) | ternary('restarted', 'stopped') }}" heartbeat_service_state: "{{ (inventory_hostname in (groups['heartbeat'] | default([]))) | ternary('restarted', 'stopped') }}"
journalbeat_service_state: "{{ (inventory_hostname in (groups['hosts'] | default([]))) | ternary('restarted', 'stopped') }}" journalbeat_service_state: "{{ (inventory_hostname in (groups['journalbeat'] | default([]))) | ternary('restarted', 'stopped') }}"
metricbeat_service_state: "{{ (inventory_hostname in (groups['hosts'] | default([]))) | ternary('restarted', 'stopped') }}" metricbeat_service_state: "{{ (inventory_hostname in (groups['metricbeat'] | default([]))) | ternary('restarted', 'stopped') }}"
packetbeat_service_state: "{{ (inventory_hostname in (groups['network_hosts'] | default([]))) | ternary('restarted', 'stopped') }}" packetbeat_service_state: "{{ (inventory_hostname in (groups['packetbeat'] | default([]))) | ternary('restarted', 'stopped') }}"
children: children:
auditbeat: auditbeat:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
filebeat: filebeat:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
heatbeat: heartbeat:
children: children:
kibana_all: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. kibana_all: {}
journalbeat: journalbeat:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
metricbeat: metricbeat:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
all_containers: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited.
packetbeat: packetbeat:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. network_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited.
apm-server_all: apm-server_all:
children: children:
apm-server: apm-server:
children: children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}
fleet_all: fleet_all:
children: children:
@ -174,22 +185,22 @@ all_systems:
children: children:
kolide-db: kolide-db:
children: children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}
kolide-fleet_all: kolide-fleet_all:
children: children:
kolide-fleet: kolide-fleet:
children: children:
log_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}
osquery_all: osquery_all:
children: children:
osquery: osquery:
children: children:
all_hosts: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. physical_hosts: {}
grafana_all: grafana_all:
children: children:
grafana: grafana:
children: children:
utility_all: {} # This is an osa native group, as such nothing needs to be added. Values will be inherited. metering_ui_targets: {}