From 1399ce511371d664ce1b78030897919bfc9d585d Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 15 Oct 2024 13:44:52 -0400 Subject: [PATCH] ansible: Install and configure promtail Change-Id: Ia0625da7547412fdb41abdfd31036d0a378c939e Signed-off-by: Kienan Stewart --- automation/ansible/group_vars/hosts.yml | 1 + automation/ansible/group_vars/node_amd64.yml | 2 + automation/ansible/group_vars/node_arm64.yml | 3 ++ .../ansible/roles/common/defaults/main.yml | 3 ++ .../ansible/roles/common/files/grafana.gpg | Bin 0 -> 1758 bytes .../roles/common/tasks/setup-Debian.yml | 41 ++++++++++++++++++ .../common/templates/promtail.config.yml.j2 | 19 ++++++++ 7 files changed, 69 insertions(+) create mode 100644 automation/ansible/group_vars/node_arm64.yml create mode 100644 automation/ansible/roles/common/files/grafana.gpg create mode 100644 automation/ansible/roles/common/templates/promtail.config.yml.j2 diff --git a/automation/ansible/group_vars/hosts.yml b/automation/ansible/group_vars/hosts.yml index 9b5fabc..793cd34 100644 --- a/automation/ansible/group_vars/hosts.yml +++ b/automation/ansible/group_vars/hosts.yml @@ -1,3 +1,4 @@ --- +common_install_promtail: true libvirt_extra_users: - jenkins diff --git a/automation/ansible/group_vars/node_amd64.yml b/automation/ansible/group_vars/node_amd64.yml index 83ea4e9..5bcd79a 100644 --- a/automation/ansible/group_vars/node_amd64.yml +++ b/automation/ansible/group_vars/node_amd64.yml @@ -1,2 +1,4 @@ --- + +common_install_promtail: true lttng_modules_checkout_repo: true diff --git a/automation/ansible/group_vars/node_arm64.yml b/automation/ansible/group_vars/node_arm64.yml new file mode 100644 index 0000000..085cef5 --- /dev/null +++ b/automation/ansible/group_vars/node_arm64.yml @@ -0,0 +1,3 @@ +--- + +common_install_promtail: true diff --git a/automation/ansible/roles/common/defaults/main.yml b/automation/ansible/roles/common/defaults/main.yml index ef157af..321fbfc 100644 --- a/automation/ansible/roles/common/defaults/main.yml +++ b/automation/ansible/roles/common/defaults/main.yml @@ -3,3 +3,6 @@ unattended_upgrades: true common_certificate_cert_path_prefix: '/etc/ssl/certs' common_certificate_key_path_prefix: '/etc/ssl/private' common_certificate_deploy_combined_pem: true + +common_install_promtail: false +common_promtail_client: 'http://graph01:3500/loki/api/v1/push' diff --git a/automation/ansible/roles/common/files/grafana.gpg b/automation/ansible/roles/common/files/grafana.gpg new file mode 100644 index 0000000000000000000000000000000000000000..d199581a98242764d0d6ddccf191b8655db7c2b5 GIT binary patch literal 1758 zcmajeX*d*$0><%KY{P^xmcbk`F(Szp#h4h&Ws)s&2^kto7}=$(Q`{NLP*X&9rY4ET z*!OfOkz);!Au*b48B6x%oO{o6pL@UE&+qg9^gh3AU>e_bE+qg61q{PE)oGGpDMRSd zE=s4;9LkmZ{b_^9y+Vn(I~evt=RU${IWW7OfjFzzB#fa;EjEDTSE^Xy$qG(BPU{1n z3cF)LiOc=_l@ifR?3-Mp$d^(rZ`|`G|a9aWALie4@VHG{z z$>x2Ym?yG4=ux9{!*EmAU}=$~XSxG{v0kVkVjYbQX_nNG7B0MV zJ!)`E1xv!!h)$ftuw&fXaE}JNT3br(;yIt=&5ixpLK%WD(+7xA+%V_C45oRYnKR?r zFNlf?6-_~Tm_?e}8Ji+mZ>VVcu?_l;;S{}-hNf5^*n*ki$C)MJzCs?Y{3uu*Q+3TFh2y`?g!u(fd~nL1f+x^LLwkO zX%H9)QUHQv?gE4%;{Qpk?m_`M)TOYxgJ&_O)^2Be^X#=3cjfaU+}&pkI!fOk>FnPf zGV+@82_1%yjh<1v0uPBEm7CQ_jV!t`Wm$IfG`czkAm_SJ@k=C+`+($& zoSIvAG5YEwhfij(yjRVVo{=_qb}8<})pz zacW3e^}NhK8)^3UgLx)i(sNN5EoC=kRK=L#-Y7wL&7~0%lhOEJj@4FD_?eqHt=cD9 zKQdT89;la3#@cC5aU(>~Dz7RNd#tgN+A>vR-KNKaHXFL}%S&x}IthabK+~;4 z-PV=TBVz6c>{xvXad_M`^qYWkK(Vt}L6wgj#m7=|ZZDQE_vMVl%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