]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Feat: some handy macros
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 17:09:16 +0000 (14:09 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 17:09:16 +0000 (14:09 -0300)
templates/macros.erb

index 28038c0dd9457cb7096230a3428ceeb2ef00479e..3b5f9e3932f2c2ba89e6d08c3ee16194d2821561 100644 (file)
    # end site config
 </Macro>
 
+<Macro Www $name>
+   # begin site config
+   <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/www>
+      Options Indexes Includes FollowSymLinks MultiViews
+      AllowOverride All
+      Require all granted
+   </Directory>
+   # end site config
+</Macro>
+
+<Macro Web $name>
+   # begin site config
+   <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/web>
+      Options Indexes Includes FollowSymLinks MultiViews
+      AllowOverride All
+      Require all granted
+   </Directory>
+   # end site config
+</Macro>
+
+<Macro Src $name>
+   # begin site config
+   <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/src>
+      Options Indexes Includes FollowSymLinks MultiViews
+      AllowOverride All
+      Require all granted
+   </Directory>
+   # end site config
+</Macro>
+
+<Macro Html $name>
+   # begin site config
+   <Directory <%= scope.lookupvar('apache::sites_folder') %>/$name/html>
+      Options Indexes Includes FollowSymLinks MultiViews
+      AllowOverride All
+      Require all granted
+   </Directory>
+   # end site config
+</Macro>
+
 <Macro Trac $site>
    # begin trac config
    <Location "/trac">