From 514054779a7af776a9dec39a0f79f68033a14012 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 25 Jun 2024 10:35:53 +0200 Subject: [PATCH] replace create_resources() with iterator --- manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 58ec5d7..4b11f2a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -116,8 +116,10 @@ } } - if !empty($ca_certs) { - create_resources('ca_cert::ca', $ca_certs) + $ca_certs.each |$ca, $data| { + ca_cert::ca { $ca: + * => $data, + } } exec { 'ca_cert_update':