Skip to content

Refactor to be friendlier to Chef 13#46

Merged
tas50 merged 7 commits intobmhatfield:masterfrom
jjlimepoint:master
Apr 19, 2017
Merged

Refactor to be friendlier to Chef 13#46
tas50 merged 7 commits intobmhatfield:masterfrom
jjlimepoint:master

Conversation

@jjlimepoint
Copy link
Copy Markdown
Contributor

Refactor to be friendlier to Chef 13, which entails modifying the resources to be custom resources rather than LWRPs, making the resources always use inline resources, and removing the code that does resource modification after creation. Tested on Chef 12.6 as well, but probably won't work earlier than 12.5 of course!

@cmoscardi
Copy link
Copy Markdown

+1 for this one - just ran into an error with chef 13.

@bmhatfield
Copy link
Copy Markdown
Owner

Thanks for the +1 here.

I haven't tried Chef 13 yet, and don't have time to scope out that upgrade in the near future. As a substitute, would someone ( @cmoscardi ? ) let me know these changes work for them as-is, and I'll merge this in and release a new version?

@cmoscardi
Copy link
Copy Markdown

cmoscardi commented Apr 18, 2017

Just tried - this fixed my issue, which came from calling the ulimit_domain resource via the hadoop cookbook. I immediately knew what the issue was, as I had to submit a PR for another cookbook due to this same breaking change in chef 13. I wrote up something slightly different for the PR I made (based on the new API docs), but this way of changing seems like it'd work as well...

hadoop cookbook source: this line

@tas50 tas50 merged commit 0416578 into bmhatfield:master Apr 19, 2017
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.

4 participants