From 446492eb0dc0bad9539f88f58d04b08cfde44466 Mon Sep 17 00:00:00 2001 From: Ryan Haney <25014745+thathaneydude@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:35:55 -0500 Subject: [PATCH] allowing for independent configuration of the monitoring health check. --- cloud-config/init.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cloud-config/init.tpl b/cloud-config/init.tpl index 03ffbef..231ad5a 100644 --- a/cloud-config/init.tpl +++ b/cloud-config/init.tpl @@ -15,10 +15,14 @@ write_files: monitoring_interface: name: ${mon_int} wait: true -%{ if mon_subnet != "" && mon_gateway != "" ~} +%{ if health_port != "" ~} health_check: port: ${health_port} +%{ endif ~} +%{ if mon_subnet != "" } subnet: ${mon_subnet} +%{ endif ~} +%{ if mon_gateway != "" } gateway: ${mon_gateway} %{ endif ~} kubernetes: @@ -43,7 +47,6 @@ runcmd: - | echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "gcp","cloud_enrichment.bucket_name": "${bucket_name}"}' | corelightctl sensor cfg put %{ endif ~} -# TODO: Remove after Software Sensor v27.14.0 is released %{ if enrichment_enabled ~} - /usr/local/bin/kubectl rollout restart deployment -n corelight-sensor sensor-core %{ endif ~}