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

Dynamically generate the new_resource attributes #101

Closed
wants to merge 1 commit into from

Conversation

jtimberman
Copy link
Contributor

Issue #99 came up because an attribute for the yum_globalconfig was left out - the cachedir. This commit updates the recipe to dynamically walk the node['yum']['main'] attributes and send each one with its value to the new resource. This assures that all attributes defined are passed into the configuration.

This can lead to an error if a user adds an attribute incorrectly. That seems unlikely, though. I hope.

Issue #99 came up because an attribute for the `yum_globalconfig` was
left out - the cachedir. This commit updates the recipe to dynamically
walk the `node['yum']['main']` attributes and send each one with its
value to the new resource. This assures that all attributes defined
are passed into the configuration.

This *can* lead to an error if a user adds an attribute incorrectly.
That seems unlikely, though. I hope.
@jtimberman
Copy link
Contributor Author

This supersedes #100 (and has a merge conflict with that PR), and also will fix #99. I opened this PR separately, as it may be preferable to preserve the recipe with all the resource's attributes as it stands. If that is the case, merge #100 (to resolve #99), and close this PR. Otherwise, do the opposite 🍨.

@someara
Copy link

someara commented Oct 15, 2014

Merged. Released as 3.4.0

@someara someara closed this Oct 15, 2014
@jtimberman jtimberman deleted the jtimberman/dynamic-globalconfig branch October 25, 2014 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants