summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-03-31 02:13:08 +0200
committermh <mh@immerda.ch>2010-03-31 02:13:08 +0200
commit130c571a0c251582b0632c57790f7bb3fc6048b1 (patch)
tree4df70bffb84ee93c55657dd2604e6c39a59b9dbc /manifests
parentb9319395f5a2f72c5e08ef00aa4442b02b075106 (diff)
introduce centos support
Diffstat (limited to 'manifests')
-rw-r--r--manifests/centos.pp23
-rw-r--r--manifests/init.pp1
2 files changed, 24 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;
+ }
+}
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 }
}