---

kibana_image_name: "docker.elastic.co/kibana/kibana"

kibana_advanced_settings:
  changes:
    truncate:maxHeight: 0

prometheus_es_exporter__username: '{{ stage }}-prometheus-es-exporter'
prometheus_es_exporter__password: '{{ prometheus_es_exporter__password_vault }}'
prometheus_es_exporter__email: 'nso.devops@netgo.de'

kibana_technical_users:
  -
    elastic_users:
      -
        username: '{{ prometheus_es_exporter__username }}'
        roles:
        - '{{ prometheus_es_exporter__username }}'
        full_name: ''
        password: '{{ prometheus_es_exporter__password }}'
        email: '{{ prometheus_es_exporter__email }}'
        enabled: true
        elastic_state: present
    elastic_roles:
      -
        elastic_state: present
        name: '{{ prometheus_es_exporter__username }}'
        elasticsearch:
          cluster: []
          indices:
          - names:
            - '{{ stage }}-*'
            privileges:
            - read
            - read_cross_cluster
            - view_index_metadata
            allow_restricted_indices: false
          run_as: []
        kibana:
        - base: []
          feature:
            advancedSettings:
            - all
            dashboard:
            - all
            discover:
            - all
            indexPatterns:
            - all
            savedObjectsManagement:
            - all
            visualize:
            - all
          spaces:
          - '{{ prometheus_es_exporter__username }}'
    elastic_spaces:
      -
        elastic_state: present
        id: &es_space_name '{{ prometheus_es_exporter__username }}'
        name: '{{ prometheus_es_exporter__username }}'
        description: ''
        disabledFeatures:
          - canvas
          - maps
          - ml
          - visualize
          - enterpriseSearch
          - logs
          - infrastructure
          - apm
          - uptime
          - observabilityCases
          - siem
          - monitoring
          - fleet
          - stackAlerts
          - actions
          - osquery
          - savedObjectsTagging
    elastic_index_patterns:
      -
        attributes:
          fieldAttrs: '{}'
          fields: "[]"
          runtimeFieldMap: "{}"
          timeFieldName: "@timestamp"
          title: '{{ stage }}-management-*-connect-*'
          typeMeta: "{}"
        references: []
        elastic_state: present
      -
        attributes:
          fieldAttrs: '{}'
          fields: "[]"
          runtimeFieldMap: "{}"
          timeFieldName: "@timestamp"
          title: 'uncategorized-*'
          typeMeta: "{}"
        references: []
        elastic_state: present
      -
        attributes:
          fieldAttrs: '{}'
          fields: "[]"
          runtimeFieldMap: "{}"
          timeFieldName: "@timestamp"
          title: '{{ stage }}-*-authlog-*'
          typeMeta: "{}"
        references: []
        elastic_state: present
      -
        attributes:
          fieldAttrs: '{}'
          fields: "[]"
          runtimeFieldMap: "{}"
          timeFieldName: "@timestamp"
          title: '{{ stage }}-*-syslog-*'
          typeMeta: "{}"
        references: []
        elastic_state: present
      -
        attributes:
          fieldAttrs: '{}'
          fields: "[]"
          runtimeFieldMap: "{}"
          timeFieldName: "@timestamp"
          title: '{{ stage }}-monitoring-*'
          typeMeta: "{}"
        references: []
        elastic_state: present

