From 77b412d380672ff846232139a1273cc9db30f805 Mon Sep 17 00:00:00 2001 From: Rafal Skolasinski Date: Thu, 11 Nov 2021 17:47:55 +0000 Subject: [PATCH] add bitnami fluentd role --- roles/bitnami_fluentd/defaults/main.yaml | 6 ++++++ roles/bitnami_fluentd/tasks/main.yaml | 16 ++++++++++++++++ roles/efk_opendistro_stack/defaults/main.yaml | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 roles/bitnami_fluentd/defaults/main.yaml create mode 100644 roles/bitnami_fluentd/tasks/main.yaml diff --git a/roles/bitnami_fluentd/defaults/main.yaml b/roles/bitnami_fluentd/defaults/main.yaml new file mode 100644 index 0000000..fde619d --- /dev/null +++ b/roles/bitnami_fluentd/defaults/main.yaml @@ -0,0 +1,6 @@ +--- +bitnami_fluentd_namespace: seldon-logs +bitnami_fluentd_name: fluentd + +bitnami_fluentd_chart_version: 4.1.6 +bitnami_fluentd_values: {} diff --git a/roles/bitnami_fluentd/tasks/main.yaml b/roles/bitnami_fluentd/tasks/main.yaml new file mode 100644 index 0000000..d647507 --- /dev/null +++ b/roles/bitnami_fluentd/tasks/main.yaml @@ -0,0 +1,16 @@ +--- +- name: "Create a k8s namespaces: {{ bitnami_fluentd_namespace }}" + kubernetes.core.k8s: + name: "{{ bitnami_fluentd_namespace }}" + api_version: v1 + kind: Namespace + state: present + +- name: Install Audit Fluentd + kubernetes.core.helm: + name: "{{ bitnami_fluentd_name }}" + release_namespace: "{{ bitnami_fluentd_namespace }}" + chart_repo_url: "https://charts.bitnami.com/bitnami" + chart_ref: "fluentd" + chart_version: "{{ bitnami_fluentd_chart_version }}" + values: "{{ bitnami_fluentd_values }}" diff --git a/roles/efk_opendistro_stack/defaults/main.yaml b/roles/efk_opendistro_stack/defaults/main.yaml index 4b96974..11073e6 100644 --- a/roles/efk_opendistro_stack/defaults/main.yaml +++ b/roles/efk_opendistro_stack/defaults/main.yaml @@ -16,5 +16,5 @@ elastic_opendistro_wait_for_deployments: true fluentd_chart_version: 10.0.1 -flutend_values: {} +fluentd_values: {} fluentd_wait_for_deployments: true