Skip to content

Commit

Permalink
readd dependencies to class to generate configs (#119)
Browse files Browse the repository at this point in the history
That was a bit fast to remove...

this reverts ae510aa
from pull request #116 (remove dependencies since we have autorequire)
and adds the dependencies between openssl config file and cert generations.

the autorequire mentioned in the the original commit, meant the
newly available autorequire in the defined types. But that one is
an autorequire for the directory where we put the file to generate, not
the configuration file !
  • Loading branch information
trefzer authored Jan 12, 2021
1 parent e0f0b93 commit 67fcecb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/configs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
Hash $conffiles = {},
){

# dpendencies: ensure config file is generated before potential usage
File<| tag=='openssl-configs' |> -> Ssl_pkey<| |>
File<| tag=='openssl-configs' |> -> X509_cert<| |>
File<| tag=='openssl-configs' |> -> X509_request<| |>

$conffiles.each |String $filename, Hash $vals| {
file { $filename:
ensure => pick($vals['ensure'], 'present'),
Expand Down

0 comments on commit 67fcecb

Please sign in to comment.