diff options
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp new file mode 100644 index 0000000..9cde0ec --- /dev/null +++ b/manifests/centos.pp @@ -0,0 +1,23 @@ +class stunnel::centos inherits stunnel::base { + + file{'/etc/init.d/stunnel': + source => [ "puppet://$server/modules/stunnel/${fqdn}/stunnel.init", + require => Package['stunnel'], + before => Service['stunnel'], + owner => root, group => 0, mode => 0600; + } + + Service['stunnel']{ + hasstatus => true, + require => File['/etc/init.d/stunnel'] + } + + file{'/etc/stunnel/stunnel.conf': + source => [ "puppet://$server/modules/site-stunnel/${fqdn}/stunnel.conf", + "puppet://$server/modules/site-stunnel/stunnel.conf", + "puppet://$server/modules/stunnel/${operatingsystem}/stunnel.conf" ], + require => Package['stunnel'], + notify => Service['stunnel'], + owner => root, group => 0, mode => 0600; + } +} |