-
-
Notifications
You must be signed in to change notification settings - Fork 875
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 hiera defaults configuration options for all resources; rename $nginx_upstream_defaults to $nginx_upstreams_defaults #1080
Conversation
mvisonneau
commented
Apr 19, 2017
- Added hiera defaults configuration options for all resources
- Sorted variables
- Casted them to an hash
Should there perhaps be new tests related to this change? Either way, looks good to me. |
I think this is partially covered by #1071 and similar PRs; aside from lack of tests, I think some of these resources may already have defaults that I think would get overwritten by these, e.g., https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/server.pp#L447-L453 (which is handled in #1071). |
I merged the other PR since it was smaller and had tests, so this will need a rebase for the remaining functionality. |
3c7725d
to
8e77df7
Compare
👋 apologies for the late update. Just rebased and added some additional checks. |
@mvisonneau thanks for rebasing and adding tests. It seems as if some tests are failing in CI |
Hi @mvisonneau, are you still interested in this PR? If so, please rebase against latest master. Afterwards we can check if travis is still failing. |
3eb5171
to
dc99ae4
Compare
dc99ae4
to
98a1e4a
Compare
98a1e4a
to
b2f197c
Compare
create_resources( 'nginx::resource::map', $string_mappings, $string_mappings_defaults ) | ||
create_resources( 'nginx::resource::server', $nginx_servers, $nginx_servers_defaults ) | ||
create_resources( 'nginx::resource::streamhost', $nginx_streamhosts, $nginx_streamhosts_defaults ) | ||
create_resources( 'nginx::resource::upstream', $nginx_upstreams, $nginx_upstreams_defaults ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per #1309, good luck creating nginx::resource::upstream
resources with defaults of type Nginx::UpstreamMemberDefaults
...
Add hiera defaults configuration options for all resources