From 96958b97d9a0f7bc42ca807171f629c608dcb075 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 31 Mar 2010 02:29:27 +0200 Subject: some more centos work --- manifests/centos.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/centos.pp b/manifests/centos.pp index 9cde0ec..c813bc4 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -1,15 +1,21 @@ class stunnel::centos inherits stunnel::base { file{'/etc/init.d/stunnel': - source => [ "puppet://$server/modules/stunnel/${fqdn}/stunnel.init", + source => "puppet://$server/modules/stunnel/${operatingsystem}/stunnel.init", require => Package['stunnel'], before => Service['stunnel'], owner => root, group => 0, mode => 0600; } + user::managed{ "stunnel": + homedir => "/var/run/stunnel", + shell => "/sbin/nologin", + uid => 105, gid => 105; + } + Service['stunnel']{ hasstatus => true, - require => File['/etc/init.d/stunnel'] + require => [ User['stunnel'], File['/etc/init.d/stunnel'] ] } file{'/etc/stunnel/stunnel.conf': -- cgit v1.2.3