]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Per domain htdocs files
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Sep 2011 17:29:56 +0000 (14:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Sep 2011 17:29:56 +0000 (14:29 -0300)
manifests/subsystems/websites.pp

index cf9d5ec83fd2dd06f65b8729fda44901d6b5fe1b..da037ed34276b57e518e9f0e5555fd2d560c55d3 100644 (file)
@@ -36,7 +36,7 @@ class websites::setup {
     # This mode will also apply to files from the source directory
     mode    => 0644,
     # Puppet will automatically set +x for directories
-    source  => [ "puppet:///modules/site-apache/htdocs/images",
+    source  => [ "puppet:///modules/site-apache/htdocs/$domain/images",
                  "puppet:///modules/nodo/htdocs/images", ]
   }
 
@@ -46,7 +46,7 @@ class websites::setup {
     owner   => "root",
     group   => "root",
     mode    => 0644,
-    source  => [ "puppet:///modules/site-apache/htdocs/index.html",
+    source  => [ "puppet:///modules/site-apache/htdocs/$domain/index.html",
                  "puppet:///modules/nodo/htdocs/index.html", ]
   }
 
@@ -56,7 +56,7 @@ class websites::setup {
     owner   => "root",
     group   => "root",
     mode    => 0644,
-    source  => [ "puppet:///modules/site-apache/htdocs/missing.html",
+    source  => [ "puppet:///modules/site-apache/htdocs/$domain/missing.html",
                  "puppet:///modules/nodo/htdocs/missing.html", ]
   }