class webserver { $owner = $hostname ? { kirby => httpd, culain => www-data } $docbase = "/export/apache/docroots" file { "$docbase/icontek.com/htdocs": owner => matt, group => $owner, recurse => true; "$docbase/mail.madstop.com/htdocs/data": owner => $owner, group => $owner, recurse => true; "$docbase/mail.madstop.com/htdocs/data/.htaccess": owner => $owner, group => $owner, mode => 440 } # FIXME File names don't currently support globbing #"$docbase/*/logs": # owner => httpd, group => httpd, recurse => true; service { apache2: running => true, path => "/etc/init.d" } }