diff options
Diffstat (limited to 'manifests/cert.pp')
-rw-r--r-- | manifests/cert.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/cert.pp b/manifests/cert.pp new file mode 100644 index 0000000..66ed574 --- /dev/null +++ b/manifests/cert.pp @@ -0,0 +1,11 @@ +# manage a cert snippet that we want to include +define strongswan::cert($cert) { + file{"${strongswan::config_dir}/certs/${name}.asc": + content => $cert, + require => Package['strongswan'], + notify => Service['ipsec'], + owner => 'root', + group => 0, + mode => '0400'; + } +} |