From 5fa5c56eddfd102b5ed075a30b8bf47c5f791b77 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 22 Jun 2016 22:33:43 -0300 Subject: Adds ssl::packages and ssl::snakeoil --- manifests/packages.pp | 5 +++++ manifests/snakeoil.pp | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 manifests/packages.pp create mode 100644 manifests/snakeoil.pp 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'], + } +} -- cgit v1.2.3