|
|
|
@ -121,12 +121,57 @@
|
|
|
|
- actions
|
|
|
|
- actions
|
|
|
|
- osquery
|
|
|
|
- osquery
|
|
|
|
- savedObjectsTagging
|
|
|
|
- savedObjectsTagging
|
|
|
|
es_index_pattern_tenant: '{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*'
|
|
|
|
|
|
|
|
es_index_pattern_services:
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*-{{ cluster_service }}-*"
|
|
|
|
|
|
|
|
name: "{{ cluster_service }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: "Create Index Pattern for <{{ stage }}-{{ tenant_id }}-*>"
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
|
|
|
|
es_index_pattern_tenant: '{{ stage }}-{{ tenant_id }}-*'
|
|
|
|
|
|
|
|
elastic_index_patterns:
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
with_container_filter: false
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- cluster_name is not defined
|
|
|
|
|
|
|
|
- cluster_service is not defined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Create Index Pattern for <{{ stage }}-{{ tenant_id }}-{{ cluster_name }}>"
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
|
|
|
|
es_index_pattern_tenant: '{{ stage }}-{{ tenant_id }}-*'
|
|
|
|
|
|
|
|
elastic_index_patterns:
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- cluster_name is defined
|
|
|
|
|
|
|
|
- cluster_service is not defined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Create Index Pattern for <{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-{{ cluster_service }}>"
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
|
|
|
|
es_index_pattern_tenant: ''
|
|
|
|
|
|
|
|
elastic_index_patterns:
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-*"
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*"
|
|
|
|
|
|
|
|
- id: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-*-{{ cluster_service }}-*"
|
|
|
|
|
|
|
|
name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-{{ cluster_service }}"
|
|
|
|
|
|
|
|
search_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-{{ cluster_service }}-*"
|
|
|
|
|
|
|
|
dashboard_name: "{{ stage }}-{{ tenant_id }}-{{ cluster_name }}-{{ cluster_service }}-*"
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- cluster_service is defined
|
|
|
|
|
|
|
|
- cluster_name is defined
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Do some stuff in elastic with spaces ... "
|
|
|
|
- name: "Do some stuff in elastic with spaces ... "
|
|
|
|
include_role:
|
|
|
|
include_role:
|
|
|
|
name: kibana
|
|
|
|
name: kibana
|
|
|
|
@ -176,8 +221,7 @@
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
es_space: *es_space_name
|
|
|
|
es_space: *es_space_name
|
|
|
|
es_indexpattern_title: '{{ es_indexpattern_name }}'
|
|
|
|
es_indexpattern_title: '{{ es_indexpattern_name }}'
|
|
|
|
es_index_pattern_tenant_uuid: '{{ es_index_pattern_tenant | to_uuid }}'
|
|
|
|
es_panel_uuid: "{{ 'panel_' + elastic_dashboard_name | to_uuid }}"
|
|
|
|
es_panel_uuid: "{{ 'panel_' + es_dashboard_name | to_uuid }}"
|
|
|
|
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- es-importobjects
|
|
|
|
- es-importobjects
|
|
|
|
|
|
|
|
|
|
|
|
|