summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-20 16:45:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-20 16:45:23 -0300
commitfdc749a0cda6859c5d011cafcf3b915444b67d50 (patch)
treed294806114b0521f9c68ad67d5cbafe16051a8bf /manifests
parentc4858ebfa999ba902deac5f2d7b5c26ffe97f8b2 (diff)
downloadpuppet-apache-fdc749a0cda6859c5d011cafcf3b915444b67d50.tar.gz
puppet-apache-fdc749a0cda6859c5d011cafcf3b915444b67d50.tar.bz2
Allowing per-domain vhost source
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 95dc155..e15eefa 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -188,7 +188,8 @@ class apache {
true: {
file { "${apache2_sites}-available/$vhost":
ensure => $ensure,
- source => "puppet:///modules/site-apache/vhosts/$title",
+ source => [ "puppet:///modules/site-apache/vhosts/$domain/$title",
+ "puppet:///modules/site-apache/vhosts/$title" ]
owner => root,
group => root,
mode => 0644,