From fe5287ed8ec2f3c5de3a26a5b2fefd9b43f92c10 Mon Sep 17 00:00:00 2001 From: Patrik Holmqvist Date: Fri, 4 Apr 2025 13:55:33 +0200 Subject: [PATCH] Run monitoreidas on newer nagioscfg branch, SC-2522 Until we update the eidas version we need to make this exception to avoid this error: Evaluation Error: Unknown function: 'has_key'. (file: /etc/puppet/cosmos-modules/nagioscfg/manifests/init.pp, line: 116, column: 6) on node --- global/overlay/etc/puppet/setup_cosmos_modules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/global/overlay/etc/puppet/setup_cosmos_modules b/global/overlay/etc/puppet/setup_cosmos_modules index 15280194..037cc6d1 100755 --- a/global/overlay/etc/puppet/setup_cosmos_modules +++ b/global/overlay/etc/puppet/setup_cosmos_modules @@ -246,6 +246,8 @@ def main(): modules["sunet"]["tag"] = "pahol-fix-rsyslog*" if re.match(r'^monitoreidas-prod-sto1-1.komreg.net', host_info["fqdn"]): modules["sunet"]["tag"] = "pahol-naemon-acmed*" + if re.match(r'^monitoreidas-prod-sto1-1.komreg.net', host_info["fqdn"]): + modules["nagioscfg"]["tag"] = "sunet-2*" # Build list of expected file content file_lines = create_file_content(modules)