| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|\
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
This makes it easier to read and easier to test
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Initial stab at a chef_client_config resource that will allow people to easily write out a client.rb. This isn't meant to cover every single use case, but instead to provide a simple resource that works for 99% of users.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: mwrock <matt@mattwrock.com>
|
|
|
|
| |
Signed-off-by: mwrock <matt@mattwrock.com>
|
|
|
|
| |
Signed-off-by: mwrock <matt@mattwrock.com>
|
|\
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: mwrock <matt@mattwrock.com>
|
|/
|
|
| |
Signed-off-by: mwrock <matt@mattwrock.com>
|
|
|
|
| |
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|
|
|
|
|
|
|
| |
tty-table was holding back a bunch of deps. This will resolve several Ruby 2.7 warnings and lets use use the optimized license-acceptance gem that also had pete's better error handling. This also nukes a few deps to make chef/chef smaller.
Includes misc chefstyle fixes for the new version
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This was one of our top 10 slow specs
Before:
Chef::Mixin::OpenSSLHelper#dhparam_pem_valid? When the dhparam.pem file does exist, and does contain a vaild dhparam key returns true
2.71 seconds ./spec/unit/mixin/openssl_helper_spec.rb:101
After:
0.01765 seconds ./spec/unit/mixin/openssl_helper_spec.rb:538
Chef::Mixin::OpenSSLHelper#dhparam_pem_valid? When the dhparam.pem file does exist, and does contain a vaild dhparam key returns true
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| |
| | |
Now that we don't check the value first we're only calling it once,
which is :dope:
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
These are required by Ruby out of the box so lets avoid trying to
require them again.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
| |
Co-authored-by: pete higgins <pete@peterhiggins.org>
|
|
|
|
|
|
|
|
|
|
| |
Also pull in some helpers from the Ohai work so that Ohai can
use them later.
This is code rearrangement to support the remote ohai work but
does not change any existing behavior yet.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lance Albertson <lance@osuosl.org>
|
|
|
|
|
| |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Lance Albertson <lance@osuosl.org>
|
|
|
|
|
| |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Lance Albertson <lance@osuosl.org>
|
|
|
|
|
| |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Signed-off-by: Lance Albertson <lance@osuosl.org>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: mwrock <matt@mattwrock.com>
|
| |
| |
| |
| | |
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
|
|\ \
| | |
| | | |
Signed-off-by: Lamont Granquist <lamont@chef.io>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \
| | | |
| | | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
This is a bit easier to read
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/ /
| |
| |
| |
| |
| | |
Turns out on multi-core boxes these are valid.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/
| |
| |
| |
| |
| | |
We were looping over the same object twice here.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|\
| |
| | |
Use include? to example strings when we don't need a regex
|
| |
| |
| |
| |
| |
| | |
There's no need for match? with regex here.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| |/
|/| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
This one is pretty odd. We would grep the line to see if it includes katello-ca-consumer and then we'd check it again in ruby. Let's just do that work once now.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| |/
|/| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| | |
- Fix invalid output_locations raise start_time error.
- Improve validate_output_locations!
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|/
|
|
|
|
| |
Resolve the issues that pete pointed out plus a few others
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Signed-off-by: Lamont Granquist <lamont@chef.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While this behavior was fixed for attributes a long, long time ago it
turns out we don't use this deep_merge mixin for constructing the
deep merge of attribute precedence levels any more.
This bug however surfaces because we still use deep_merge to merge
json attributes into normal attributes. That means that it is not
possible to pass a nil / null value in through -j and have it override
a normal attribute which is pulled back in from the node object on
the chef-server.
So this fixes that behavior to be consistent with the behavior of
attributes that we've had for several years now.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
|
|
|
|
| |
chef-client unit
This allows us to set a quota like 50% on everything handled by the chef-client including all the sub-processes like ohai or inspec. I looked at using systemd's nice functionality since that would give us a unified property for all the *nix processes, but that only applies to the chef-client process itself. This is much more powerful and gives users what user's probably really want which is "chef and all its stuff should not consume all the CPU on my host".
Signed-off-by: Tim Smith <tsmith@chef.io>
|