Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple <Limit> support + ProxyAddHeaders #1427

Merged
merged 3 commits into from Apr 28, 2016
Merged

Add simple <Limit> support + ProxyAddHeaders #1427

merged 3 commits into from Apr 28, 2016

Conversation

costela
Copy link
Contributor

@costela costela commented Apr 14, 2016

The main commit in this PR introduces minimal support for the block inside blocks.
To do this, the template code handling "Require" directives has been refactored to a template of its own to avoid code duplication. This new template in turn then gets included in the main _directories.erb template, both directly inside the block and also inside each block.

Additionally, this PR also includes the relatively straightforward support for the ProxyAddHeaders directive.

@bmjen
Copy link
Contributor

bmjen commented Apr 14, 2016

@costela this looks good! Due to other PRs merged before, this will need a rebase. Thanks!

Leo Antunes added 3 commits April 15, 2016 10:12
In order to allow "require" statements inside the <Limit> blocks without
introducing code duplication, the template for "require" handling has
beenrefactored into a subtemplate of its own. This subtemplate accesses
the current block being processed (be it a <Directory> or <Limit>)
(ab)using a scope variable _template_scope, which is in turn a hash with
a single variable :item, to workaround puppet's "thou shall not reset
variables".
@costela
Copy link
Contributor Author

costela commented Apr 15, 2016

@bmjen done.

@tphoney tphoney merged commit 9f3c2a0 into puppetlabs:master Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants