diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-12-05 14:09:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-12-05 14:09:16 -0300 |
commit | fc9a09da4eebb307e4d273b4c0999c5ee7f9bd49 (patch) | |
tree | 51bdb3242150e85ee762fac7f0440a7c9c101e91 /templates | |
parent | 861e5bdbe6301bf0a078d75cc2a4d5b6758d1868 (diff) | |
download | puppet-apache-fc9a09da4eebb307e4d273b4c0999c5ee7f9bd49.tar.gz puppet-apache-fc9a09da4eebb307e4d273b4c0999c5ee7f9bd49.tar.bz2 |
Feat: some handy macros
Diffstat (limited to 'templates')
-rw-r--r-- | templates/macros.erb | 40 |
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"> |