From 130c571a0c251582b0632c57790f7bb3fc6048b1 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 31 Mar 2010 02:13:08 +0200 Subject: introduce centos support --- manifests/centos.pp | 23 +++++++++++++++++++++++ manifests/init.pp | 1 + 2 files changed, 24 insertions(+) create mode 100644 manifests/centos.pp (limited to 'manifests') 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; + } +} diff --git a/manifests/init.pp b/manifests/init.pp index 3c3cbe4..b08058e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -25,6 +25,7 @@ class stunnel { case $operatingsystem { debian: { include stunnel::debian } + centos: { include stunnel::centos } default: { include stunnel::default } } -- cgit v1.2.3