Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4304d1d02a004fdc1bd2 to your computer and use it in GitHub Desktop.
Save anonymous/4304d1d02a004fdc1bd2 to your computer and use it in GitHub Desktop.
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