From 67188ff9c5f9603802acd266abb009a5b83acbe4 Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Wed, 30 Jul 2025 20:53:10 -0400 Subject: [PATCH] Do not deploy certs if absent --- manifests/init.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 262f874..445d24e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -16,7 +16,15 @@ Stdlib::HTTPUrl $foreman_url = "https://${facts['networking']['fqdn']}" ) { include podman - include certs::iop_advisor_engine + + $certs_deploy = $ensure ? { + 'present' => true, + 'absent' => false, + } + + class { 'certs::iop_advisor_engine': + deploy => $certs_deploy, + } $service_name = 'iop-advisor-engine' $log_dir = "/var/log/${service_name}"