Skip to content

Commit

Permalink
replace create_resources() with iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 25, 2024
1 parent dfe44e8 commit 5140547
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 5140547

Please sign in to comment.