diff --git a/manifests/config.pp b/manifests/config.pp index eb462e6a..622132f8 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -11,24 +11,26 @@ mode => '0700', } - 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', + } } }