From a51e1de81e1200751613216ab7a074e82a5dc1c8 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Wed, 12 May 2010 18:31:46 -0400 Subject: allow custom config file source in the form of an array The $source argument is not flexible enough as it is. It currently forces the source to be unique. Sometimes we'd like to be able to specify an array of possible sources. So we'll use the $source directly with the file resource without enforcing its format. WATCH OUT: this could break currently deployed apache::config::file resources, so one should change occurences of this resource's argument from: source => "modules/site-apache/blah" to a full source specification string: source => "puppet:///modules/site-apache/blah" --- manifests/config/file.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/config') diff --git a/manifests/config/file.pp b/manifests/config/file.pp index d72ba2e..697b69a 100644 --- a/manifests/config/file.pp +++ b/manifests/config/file.pp @@ -42,7 +42,7 @@ define apache::config::file( "puppet://${server}/modules/apache/${confdir}/${operatingsystem}/${name}", "puppet://${server}/modules/apache/${confdir}/${name}" ], - default => "puppet://${server}/${source}", + default => $source, } File["apache_${name}"]{ source => $real_source, -- cgit v1.2.3