Skip to content

Commit

Permalink
Merge pull request #115 from bastelfreak/foo2
Browse files Browse the repository at this point in the history
replace create_resources() with iterator
  • Loading branch information
bastelfreak authored Jun 25, 2024
2 parents e9d4fbd + 5140547 commit 35ae9b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 35ae9b1

Please sign in to comment.