diff options
author | mh <mh@immerda.ch> | 2010-03-31 02:13:08 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-03-31 02:13:08 +0200 |
commit | 130c571a0c251582b0632c57790f7bb3fc6048b1 (patch) | |
tree | 4df70bffb84ee93c55657dd2604e6c39a59b9dbc /manifests/centos.pp | |
parent | b9319395f5a2f72c5e08ef00aa4442b02b075106 (diff) |
introduce centos support
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; + } +} |