summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-05 14:09:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-05 14:09:16 -0300
commitfc9a09da4eebb307e4d273b4c0999c5ee7f9bd49 (patch)
tree51bdb3242150e85ee762fac7f0440a7c9c101e91
parent861e5bdbe6301bf0a078d75cc2a4d5b6758d1868 (diff)
downloadpuppet-apache-fc9a09da4eebb307e4d273b4c0999c5ee7f9bd49.tar.gz
puppet-apache-fc9a09da4eebb307e4d273b4c0999c5ee7f9bd49.tar.bz2
Feat: some handy macros
-rw-r--r--templates/macros.erb40
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/macros.erb b/templates/macros.erb
index 28038c0..3b5f9e3 100644
--- a/templates/macros.erb
+++ b/templates/macros.erb
@@ -47,6 +47,46 @@
# 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">