| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Contributes to the removal of the 'heavy' highline dependency (#9359) by
switching from highline.color to pastel.decorate, which is a drop-in
replacement. Pastel is part of the tty[1] family of libraries.
[1] https://github.com/piotrmurach/tty#3-components
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
We support the last 2 releases of Ruby on Chef. Ruby 2.7 is out so we
should remove Ruby 2.5 at this point. We'll add Ruby 2.7 testing in the
near future.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Start the development process
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
| |
We only need the rspec task which gets run from within the gem artifact
in the test phase. Skips all the other stuff.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md)
although some of the specifics have been iterated on and changed.
The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged.
While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem
should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai
as well.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
| |
This gem is 70k smaller than the 2.x gem since it doesn't ship extra
files
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Somehow we missed the actual openssl 1.0.2t bump. We need this train bump to fix a bug in bootstrap that had to happen on the train side.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
0.2.4 and before are entirely broken for bootstrapping.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
InSpec 4.12 pulls in Train 3.0, which removes the winrm functionality. We're adding it back via the new dep on train-winrm. The updated train also includes several bugfixes we need for bootstrapping.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
Deprecation logic is now available in `mixlib-cli`
via `deprecated_option`. Let's use that instead
of keeping our custom deprecation behavior.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
| |
Also updating the transmission of the license acceptance through the
config.rb because that brings it in line with existing patterns
(Test Kitchen).
Signed-off-by: tyler-ball <tball@chef.io>
|
|\
| |
| | |
Initial target_mode implementation
|
| |
| |
| |
| | |
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
| |
| |
| |
| | |
Signed-off-by: Bryan McLellan <btm@chef.io>
|
|/
|
|
| |
Signed-off-by: Mark Anderson <mark@chef.io>
|
|\
| |
| | |
Remove chef-* bin files from chef gem
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is for the relicensing effort.
Note that this PR leaves the knife and ohai binstubs still in the
gem(s) while that discussion is still ongoing.
This PR extracts the binstubs to chef-binstubs gem which is not intended
to be redistributed outside of the omnibus chef binaries.
A blank gem for chef-binstubs has been pushed to rubygems.org for
obvious security concerns and so that bundler/rubygems can resolve
the gem
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
| |
This gives us support for ed25519 keys
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
Highline 1.7 is out and seems reasonable for our minimal highline usage
Pulling inspec from git for now allows us to use the latest train which allows for the new net-ssh
New net-ssh allows for new key formats
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
One step closer to killing off highline. We're just getting the terminal width here, which is super overkill for highline. We're still using it in quite a few other places, but this gets us one step closer to moving over to tty entirely.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
This adds the archive_file resource from the libarchive cookbook. I've updated the property names in that cookbook to allow us to add a :create action later on. This code matches the code in the cookbook nearly 100%.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We bumped these all when we removed support for Ruby 2.1/2.2 from our gems
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
This just gives us a line count to the change and perhaps a starting
point for when we do this in Chef 15
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
1.x will work just fine here.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We haven't fully added 2.6 support, but Chef 15 will continue or RFC defined Ruby support process of supporting N and N-1. Now that the latest Ohai 15 is in the Gemfile.lock the unit tests on Ruby 2.4 fail. This bumps the required version to 2.5 and removes the 2.4 tests.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
There are 2 CVEs in rack < 2.0.6. We now require at least 2.0.6 in chef-zero 14.0.11. This requires that version of chef-zero so we can ensure we don't bring in the Rack with CVEs.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
Ohai has a ceiling on the chef-config version it will accept. I just
kicked master to ohai 15 in the ohai repo. Pulling from master should
allow this all to work now.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We only use this in the windows_task resource. No need to ship it on *nix. This also brings in the latest release where I trimmed the files in the gem down.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Neither of these are needed in the gem. Gets us back 16k on disk.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
| |
We don't actually need these powershell scripts and DLLs on non-Windows
platforms. This
shaves 300k from our gem size on non-Windows platforms.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem is described in detail here:
https://github.com/rspec/rspec-expectations/issues/1068#issuecomment-424580564
Note that this is self-inflicted damage and our pattern of having #to_hash
on objects be called by #to_json and to produce a serialized 'flavor' of
the object breaks what ruby's semantics are supposed to be and those
should all be `#to_h` methods, and we should deprecate `#to_hash` but I
imagine that will be a reasonably large breaking change (Although
hopefully most of the use by users will be Node#to_hash which is
entirely correct usage since that thing is actually a kind of glorified
Hash-like monster).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
We need this to merge in https://github.com/chef/chef/pull/7353
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Seth Thomas <sthomas@chef.io>
|
|
|
|
|
|
|
|
| |
- Verified: No Threats
Fixes- MSYS-868
Signed-off-by: nimesh-msys <nimesh.patni@msystechnologies.com>
|
|
|
|
|
|
|
|
| |
We haven't used this framework for 2 major releases of Chef and as time goes on it's more and more likely we'll build something very different for testing.
We 100% do need acceptance testing, but between dokken testing in Travis and the potential for more complex integration testing with build-kite I think we should do the proper cleanup and remove this code now.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
| |
Switches to inspec-core, bumps ffi gem to newest release and bumps
other deps.
closes #7236
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|
|
|
|
|
|
| |
absolutely unknown what this bug is, but it seems to fix specs
on el6/el7
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| | |
ship resource-inspector
|
| |
| |
| |
| | |
Signed-off-by: Thom May <thom@chef.io>
|
|/
|
|
| |
Signed-off-by: Thom May <thom@chef.io>
|
|
|
|
| |
Signed-off-by: Thom May <thom@chef.io>
|
|
|
|
|
|
| |
meaning that we can have inheritable metadata
Signed-off-by: Thom May <thom@chef.io>
|