diff options
-rw-r--r-- | manifests/packages.pp | 5 | ||||
-rw-r--r-- | manifests/snakeoil.pp | 9 |
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'], + } +} |