summaryrefslogtreecommitdiff
path: root/manifests/cert.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-30 16:54:36 +0100
committermh <mh@immerda.ch>2012-12-30 16:54:36 +0100
commit773b5491530f02b979010ed9e76eac90940d2a1d (patch)
tree039dec682c8b185bb9451f2e8dcf39cf4cd3f20b /manifests/cert.pp
parent1ac11038d7c1cc1177f3b1f326254b932beeb83c (diff)
rearrange things to make it work also on el6
Diffstat (limited to 'manifests/cert.pp')
-rw-r--r--manifests/cert.pp11
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';
+ }
+}