summaryrefslogtreecommitdiff
path: root/manifests/cert.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/cert.pp
Initial commit
Diffstat (limited to 'manifests/cert.pp')
-rw-r--r--manifests/cert.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/cert.pp b/manifests/cert.pp
new file mode 100644
index 0000000..b6caa7b
--- /dev/null
+++ b/manifests/cert.pp
@@ -0,0 +1,14 @@
+define x509::cert (
+ $source = "puppet:///modules/site_x509/files/certs/${name}.crt",
+) {
+ include x509::variables
+ include x509::base
+
+ file { "${x509::variables::ssl_local_certs}/${name}.crt" :
+ ensure => file,
+ mode => '0444',
+ group => 'ssl-cert',
+ source => $source,
+ require => Package['openssl'],
+ }
+}