summaryrefslogtreecommitdiff
path: root/manifests/cert.pp
diff options
context:
space:
mode:
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'],
+ }
+}