Displaying 1 result from an estimated 1 matches for "apache_files".
2007 Feb 14
9
managing multiple files
How can I express the following in puppet?
$http_conf     = "/etc/http/conf/httpd.conf"
$vhosts_conf = "/etc/http/conf/vhosts.conf"
@files = ("$httpd_conf", "$vhosts_conf")
foreach f (@files) {
    file { "$f":
        owner => root, group => root, mode => 664,
        source => "puppet://$server/apache/$f",
    }