summaryrefslogtreecommitdiff
path: root/manifests/ca.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-22 14:32:41 -0500
committerMicah Anderson <micah@riseup.net>2012-11-22 14:32:41 -0500
commit8713c2804d22cbca0a2d4843befa0327ebc5b45e (patch)
tree6cece14dbb065994ed8815e98b35e80d3232dc97 /manifests/ca.pp
Initial commit
Diffstat (limited to 'manifests/ca.pp')
-rw-r--r--manifests/ca.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/ca.pp b/manifests/ca.pp
new file mode 100644
index 0000000..dc862d3
--- /dev/null
+++ b/manifests/ca.pp
@@ -0,0 +1,15 @@
+define x509::ca (
+ $source = "puppet:///modules/site_x509/files/CAs/${name}.crt"
+) {
+ include x509::variables
+ include x509::base
+
+ file { "${x509::variables::local_CAs}/${name}.crt" :
+ ensure => file,
+ mode => '0444',
+ group => 'ssl-cert',
+ source => $source,
+ require => [ Package['openssl'], Package['ca-certificates'] ],
+ notify => Exec['update-ca-certificates'],
+ }
+}