From a3020ce4ded0cff646cff3d1f44ebfa52fb197c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Wed, 30 Oct 2024 13:06:56 +0000
Subject: [PATCH] Central logging for ENVRI-Hub

---
 envri-hub/deploy.sh                                      | 2 ++
 envri-hub/playbooks/security-logs.yaml                   | 1 +
 envri-hub/playbooks/templates/fluent-bit-secrets.yaml.j2 | 1 +
 envri-hub/playbooks/templates/fluent-bit.yaml.j2         | 1 +
 4 files changed, 5 insertions(+)
 create mode 120000 envri-hub/playbooks/security-logs.yaml
 create mode 120000 envri-hub/playbooks/templates/fluent-bit-secrets.yaml.j2
 create mode 120000 envri-hub/playbooks/templates/fluent-bit.yaml.j2

diff --git a/envri-hub/deploy.sh b/envri-hub/deploy.sh
index c244c78..2e28826 100755
--- a/envri-hub/deploy.sh
+++ b/envri-hub/deploy.sh
@@ -24,3 +24,5 @@ ansible -m shell -a 'while ! test -f /var/lib/cloud/instance/boot-finished; do s
 
 # wait for finish
 # while ansible -m command -a 'kubectl get pods --all-namespaces' master | tail -n +3 | grep -Ev ' (Running|Completed) '; do sleep 5; done
+
+ansible-playbook playbooks/security-logs.yaml
diff --git a/envri-hub/playbooks/security-logs.yaml b/envri-hub/playbooks/security-logs.yaml
new file mode 120000
index 0000000..0149b19
--- /dev/null
+++ b/envri-hub/playbooks/security-logs.yaml
@@ -0,0 +1 @@
+../../common/playbooks/security-logs.yaml
\ No newline at end of file
diff --git a/envri-hub/playbooks/templates/fluent-bit-secrets.yaml.j2 b/envri-hub/playbooks/templates/fluent-bit-secrets.yaml.j2
new file mode 120000
index 0000000..c64dcee
--- /dev/null
+++ b/envri-hub/playbooks/templates/fluent-bit-secrets.yaml.j2
@@ -0,0 +1 @@
+../../../common/playbooks/templates/fluent-bit-secrets.yaml.j2
\ No newline at end of file
diff --git a/envri-hub/playbooks/templates/fluent-bit.yaml.j2 b/envri-hub/playbooks/templates/fluent-bit.yaml.j2
new file mode 120000
index 0000000..4ccab19
--- /dev/null
+++ b/envri-hub/playbooks/templates/fluent-bit.yaml.j2
@@ -0,0 +1 @@
+../../../common/playbooks/templates/fluent-bit.yaml.j2
\ No newline at end of file
-- 
GitLab