From 00556ea1f7dc250da7f374b20038eb2c4b90d99a Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 17 Feb 2009 17:19:08 +0000 Subject: set the owner group too --- manifests/defines/vhost_files.pp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'manifests/defines/vhost_files.pp') diff --git a/manifests/defines/vhost_files.pp b/manifests/defines/vhost_files.pp index 790c9bb..12de2ef 100644 --- a/manifests/defines/vhost_files.pp +++ b/manifests/defines/vhost_files.pp @@ -253,9 +253,15 @@ define apache::vhost::template( } -define apache::vhost::file::documentrootfile($documentroot,$filename,$thedomain){ +define apache::vhost::file::documentrootfile( + $documentroot, + $filename, + $thedomain, + $owner='root', + $group='0' + ){ file{"$documentroot/$filename": - source => [ "puppet://$server/files/apache/vhost_varieties/$fqdn/$thedomain/$filename", + source => [ "puppet://$server/files/apache/vhost_varieties/$fqdn/$thedomain/$filename", "puppet://$server/files/apache/vhost_varieties/$apache_cluster_node/$thedomain/$filename", "puppet://$server/files/apache/vhost_varieties/$operatingsystem.$lsbdistcodename/$thedomain/$filename", "puppet://$server/files/apache/vhost_varieties/$operatingsystem/$thedomain/$filename", @@ -264,9 +270,11 @@ define apache::vhost::file::documentrootfile($documentroot,$filename,$thedomain) "puppet://$server/apache/vhost_varieties/$operatingsystem.$lsbdistcodename/$thedomain/$filename", "puppet://$server/apache/vhost_varieties/$operatingsystem/$thedomain/$filename", "puppet://$server/apache/vhost_varieties/$thedomain/$filename" - ], - ensure => file, - mode => 440, + ], + ensure => file, + mode => 440, + owner => $owner, + group => $group, require => Apache::Vhost::Webdir["$thedomain"], } } -- cgit v1.2.3