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
Replace hardcoded /etc/chef with Chef::Dist::CONF_DIR #9060
Conversation
@@ -33,6 +33,7 @@ | |||
require "addressable/uri" unless defined?(Addressable::URI) | |||
require "openssl" unless defined?(OpenSSL) | |||
require "yaml" | |||
require "chef/dist" |
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.
this gives us a circlular dep between chef-config and chef itself.
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.
good point; I'll add a dist.rb to chef-config to avoid that
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.
See latest commit for proposed fix, but this has me wondering if dist.rb shouldn't simply be entirely owned by chef-config. Some quick and dirty sed could address that if we want to try it.
the windows tests look to have been cancelled. Did we reach some sort of execution timeout? |
Personally long term we should move the dist stuff into chefconfig and then we can rely on it in other products like Ohai which use chef config and may need to output log messages with branding |
When this is merged I can look into that, I want to try and finish up chef/chef ASAP to minimize the number of times we'll need to adjust CinC's pipelines. About those Windows tests, should I worry? |
You need to address |
1933e5f
to
2e35914
Compare
I've merged dist_windows_service from #9067 in here and the last commit is my proposed solution to the /var/chef and /etc/chef hackery |
note to self: run specs on all subprojects too :/ |
62c16a4
to
4732014
Compare
this should be ready for another review pass. Do note I left |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
4732014
to
6c93fb3
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Signed-off-by: Marc Chamberland chamberland.marc@gmail.com
Description
More work towards #8376
This one replaces the last known occurrences that need addressing of
/etc/chef
with a distro constant in chef-config.I validated there's no more occurrences of
/opt/chef
too. Windows paths could also be addressed in this PR (another commit), or another PR if maintainers prefer that.Related Issue
#8376
#9094
Types of changes
Checklist: