Add additional config to the locations resource and fix set_header in vhost resource #289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following parameters where added to the location resource. These
already existed in the vhost resource so the same logic and defaults
where used
The set_header variable expectes a hash of headers to set. Puppet is
does not allow hash keys to have a hyphen in the name or begin with an
capital leter. As (i belive) all headers start with a
capital letter this limitation means you can not set any header.
further more the majority of headers also contain an underscore.
I have included a patch which allows a key to be passed all in lower case and
use underscores in place of hyphens. The template will then make the
conversion. e.g. to set the header Accept-Charset: utf-8. one would
pass
set_header => { accept_charset => 'utf-8' }