-
Notifications
You must be signed in to change notification settings - Fork 421
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 a dist option to support community branches #691
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Patrick Cable <[email protected]>
👋 I'm not sure if this something folks would be interested in, but, it is a thing that seems to work in my environment. I didn't add tests because reasonably the existing ones should pass as i imagine the default would be kept to |
Hmmm... so, this is pretty half baked now that i've run into a few issues, mainly: i was a little optimistic with the use of node.override in my wrapper. Overrides aside, let me know how i can refactor this and add a test in for the dist flag. |
I removed the non-working interpolation and rebased; though being new to tests i'm a little unsure of how to proceed there. |
Hi, thanks for your contribution. 👋
|
Signed-off-by: Patrick Cable <[email protected]>
Signed-off-by: Patrick Cable <[email protected]>
Signed-off-by: Patrick Cable <[email protected]>
Hey @phiggins - makes sense re: I guess the next part is testing. I'll poke around some of that. |
would also find this useful. it would make transitioning easier. |
Hi, First I'd like to apologize, I dropped the ball on this one and only saw your response yesterday because of the new comment. I brought this up with the rest of the team and the consensus was that while this change does make logical sense, it would add too much of a maintenance burden to make it worthwhile. I'm not sure of other cookbooks have handled this but it might be worth investigating that before spending a lot more time on this. |
This makes it a bit easier to use community forks with Chef.
Description
Community forks may use a different
dist
name, but have the same basic setup. To that end, this adds adist
attribute that lets people use different community distributions of Chef with this cookbook. The config namespace is unchanged, as interpolation there may prove to be a bit unreadable.Issues Resolved
As is, if you override these variables (say you're using
cinc
):you can deploy using this cookbook - however the run mechanisms (ie. systemd on ubuntu) will still be put down on disk as
chef-client.service
which may be confusing for folks.Check List