Created
February 17, 2015 14:20
-
-
Save anonymous/4304d1d02a004fdc1bd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hiera data: | |
apache:vhosts: | |
http-apisrv.com: | |
docroot: '/var/www/html/apisrv.com' | |
port: 80 | |
rewrites: | |
- rewrite_cond: %%{}{REQUEST_METHOD} ^(TRACE|TRACK) | |
- rewrite_rule: .* - [F] | |
rewrites: | |
- rewrite_cond: - %%{}{HTTPS} off | |
- rewrite_rule: - (.*) https://apisrv.com%%{}{REQUEST_URI} | |
Puppet code: | |
$vhosts = hiera_hash('apache:vhosts', {}) | |
create_resources('apache::vhost', $vhosts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment