Skip to content

Commit

Permalink
Create pki_dir structure only if deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Sep 22, 2023
1 parent 535d201 commit e9d4427
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,26 @@
Stdlib::Absolutepath $pki_dir = $certs::pki_dir,
String $group = $certs::group,
) {
file { $pki_dir:
ensure => directory,
owner => 'root',
group => $group,
mode => '0755',
}
if $certs::deploy {
file { $pki_dir:
ensure => directory,
owner => 'root',
group => $group,
mode => '0755',
}

file { "${pki_dir}/certs":
ensure => directory,
owner => 'root',
group => $group,
mode => '0755',
}
file { "${pki_dir}/certs":
ensure => directory,
owner => 'root',
group => $group,
mode => '0755',
}

file { "${pki_dir}/private":
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
file { "${pki_dir}/private":
ensure => directory,
owner => 'root',
group => $group,
mode => '0750',
}
}
}

0 comments on commit e9d4427

Please sign in to comment.