diff --git a/hastymail/manifests/init.pp b/hastymail/manifests/init.pp index bfd5396..1eca291 100644 --- a/hastymail/manifests/init.pp +++ b/hastymail/manifests/init.pp @@ -19,7 +19,10 @@ class hastymail { ensure => directory, mode => 0750, owner => root, - group => "www-data", + group => $operatingsystem ? { + ubuntu => "www-data", + default => "httpsd", + }, } file { "/etc/hastymail2/hastymail2.conf": ensure => present, @@ -27,7 +30,10 @@ class hastymail { "puppet:///files/mail/hastymail2.conf", ], mode => 0640, owner => root, - group => "www-data", + group => $operatingsystem ? { + ubuntu => "www-data", + default => "httpsd", + }, require => File["/etc/hastymail2"], } exec { "rm /etc/hastymail2/hastymail2.rc && php /usr/local/share/hastymail/install_scripts/install_config.php /etc/hastymail2/hastymail2.conf /etc/hastymail2/hastymail2.rc": @@ -41,7 +47,10 @@ class hastymail { ensure => present, mode => 0640, owner => root, - group => "www-data", + group => $operatingsystem ? { + ubuntu => "www-data", + default => "httpsd", + }, } }