aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-22 22:33:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-22 22:33:43 -0300
commit5fa5c56eddfd102b5ed075a30b8bf47c5f791b77 (patch)
treee628138a88ce593e0879a5ca01f8701c27ad351d /manifests
parent90e594d7fb30fded58b3248b5f10053ba4f8408d (diff)
downloadpuppet-ssl-5fa5c56eddfd102b5ed075a30b8bf47c5f791b77.tar.gz
puppet-ssl-5fa5c56eddfd102b5ed075a30b8bf47c5f791b77.tar.bz2
Adds ssl::packages and ssl::snakeoil
Diffstat (limited to 'manifests')
-rw-r--r--manifests/packages.pp5
-rw-r--r--manifests/snakeoil.pp9
2 files changed, 14 insertions, 0 deletions
diff --git a/manifests/packages.pp b/manifests/packages.pp
new file mode 100644
index 0000000..a896c2f
--- /dev/null
+++ b/manifests/packages.pp
@@ -0,0 +1,5 @@
+class ssl::packages {
+ package { 'ssl-cert':
+ ensure => present,
+ }
+}
diff --git a/manifests/snakeoil.pp b/manifests/snakeoil.pp
new file mode 100644
index 0000000..cd2c7fd
--- /dev/null
+++ b/manifests/snakeoil.pp
@@ -0,0 +1,9 @@
+class ssl::snakeoil {
+ include ssl::packages
+
+ exec { 'ssl-generate-snakeoil':
+ command => '/usr/sbin/make-ssl-cert generate-default-snakeoil',
+ creates => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
+ require => Package['ssl-cert'],
+ }
+}