| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This gets us non-exploding output on Linux systems now. This was the
last plugin.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Shorten the sbt shellout timeout period
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
30 seconds is way too high here. On my mac the sbt command fails (a whole different issue), but we take 30 seconds to skip the plugin. There’s no reason to wait 30 seconds here for a plugin that doesn’t need that.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Fix the cloud plugins to properly report values on DO
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Freeze all string values coming out of Ohai.
|
| | |
| | |
| | | |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This both helps avoid weird mutation bugs and saves a bit of RAM.
Refs https://github.com/chef/chef/issues/4930
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|\ \ \
| |/ /
|/| | |
add amazon platform_family
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
i think we've finally decided not to move amazon to fedora in #960
i still think everyone is wrong, but i got my `fedora_derived?`
chef-sugar helper so its a mute point now...
https://github.com/chef/chef-rfc/pull/252
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \
| | |
| | | |
Add DMI type 40,41, and 42 from the latest man page
|
| |/
| |
| |
| |
| |
| | |
These have been added in the last few years it appears
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| |/
|/| |
[ec2] Add additional data from identity document
|
|/
|
|
|
|
|
| |
Since it's already fetching the identity document to retrieve the account id,
this adds the region and AZ info in the same place.
Signed-off-by: Sean Escriva <sean.escriva@gmail.com>
|
|\
| |
| | |
Fix lua detection on new versions of lua
|
| |
| |
| |
| |
| |
| |
| |
| | |
Newer versions of lua output lua -v on stdout while older versions use
stderr. This update will handle both and ensure that we continue to
detect the installed lua version.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Fix scala detection when version output contains a warning
|
| |/
| |
| |
| |
| |
| | |
It seems that sometimes scala outputs a bogus line ahead out the version output. Use a match instead of a split to better handle this sort of thing.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| |/
|/| |
rescue github-changelog-generator in Rakefile
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \
| |/
| | |
Fix a chefstyle warning
|
|/
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Add Digital Ocean metadata from their metadata API
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith84@gmail.com>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The network plugin is leftover from the old method where we looked up the interfaces based on the IP in the hint. We don't do that anymore so this isn't necessary.
Vendor data can include sensitive bootstrapping information that we shouldn't save to the node. It also doesn't include anything of value so either way the data shouldn't be on the node
|
| |
| |
| |
| | |
Without this it's just a big string and the .each fails
|
| |
| |
| |
| | |
The cloud data on the droplet I spun up didn't have the string listed and it also required disk reads / yaml to be loaded. This should be a lot faster since we're grabbing this data anyways.
|
| | |
|
| | |
|
| |
| |
| |
| | |
: vs. => was killing the spec
|
| | |
|
| | |
|
|\ \
| | |
| | | |
fix logger issues
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ruby doesn't like optional hashes combined with optional named
parameters -- because hashes and kwargs get magically converted
and ruby gets confused.
plus fixed/added specs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
i believe this gets the logic correct in that we want to configure the
logger when we're coming from the command line but want to skip it when
we're coming from chef or from other APIs that directly construct an
Ohai::System object.
i suspect this is what thom was trying to do by moving the
Ohai::Log.init call into the Ohai::Application class (which avoids it
being called entirely when Chef creates its Ohai::System object) here:
https://github.com/chef/ohai/pull/942/files
but that change broke the behavior where we were also supposed to skip
the rest of the configure_logging method in Ohai::System when run under
chef client.
I tried going down the route of having the Ohai::Application class
construct the Ohai::System object and then having it be the
responsibility of that caller to do configure_logging work. However,
I suspect that the initializer in Ohai::System does way too much and
that the purpose of configuring the logger where it is, is that it
must be initialized in the middle of object creation before it goes on
and creates the Loader, the Runner, creates Hints and removes constants.
So, I went the route of threading a flag through the initializer so that
Ohai::System can know if its coming from the cli or not and behave
appropriately.
There's also quite a mess with the Ohai::Log class being passed around
to the workstation loader, and it initializes itself at class loading
time and Chef::Application will inject state into Ohai::Log. I think
the eager initialization at class loading time is to not lose early
messages when run from the cli, but it means the Ohai::Log object is always
initialized, so that isn't useful for determining if we have come from the
cli or not.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
|
|
|
| |
this probably should have been done on master earlier since
breaking changes already went into ohai master
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| | |
Move duplicate http logic into a helper
|
| |
| |
| |
| |
| |
| | |
We probably want to use this in a few other places, but we certainly want to encourage people to use this in their plugins vs. reinventing the wheel.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
autofixing new chefstyle issues
|
|/ /
| |
| |
| |
| |
| | |
prep for chefstyle 0.5.0 release to not break master
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \
| |/
|/| |
Config is used in system so require it there.
|
| |
| |
| |
| |
| |
| | |
COOL team found this when using ohai/system directly. It worked in 8.X, but not post deprecation of the old config logic.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Remove a bit of dead code
|