| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Richard Mcleod <rmcleod8@ip-1-70-103-68.dob1.bcpc.bloomberg.com>
|
|
|
|
|
|
| |
spec/unit/plugins/cloud_spec.rb:454:31: C: Style/TrailingCommaInLiteral: Put a comma after the last item of a multiline hash.
Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
|
|
|
|
| |
Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
This is based on an original plugin from:
https://github.com/GLOBAL2000/chef-ohai-plugins/
With modifications from the fork here:
https://github.com/GLOBAL2000/chef-ohai-plugins/
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This gathers extra information on tunnel devices. Unfortunately iproute2 is a
little inconsistent as to how it prints these out, some are booleans some are
key values, but there's no way to tell them apart other than to know, so I parse
the ones I know about (from reading the source), and ignore anything else.
Note that I didn't add any ifconfig support to the tests. This is for a few
reasons:
1. the output in the tests from ifconfig is ancient, ifconfig on linux doesn't
look like that anymore, it looks like this:
```
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.2 netmask 255.255.255.0 broadcast 10.1.1.255
inet6 2601:645:c001:56bb::2 prefixlen 64 scopeid 0x0<global>
inet6 fe80::52e5:49ff:fe38:d761 prefixlen 64 scopeid 0x20<link>
ether 50:e5:49:38:d7:61 txqueuelen 1000 (Ethernet)
RX packets 203501353 bytes 98738916585 (91.9 GiB)
RX errors 0 dropped 559 overruns 0 frame 0
TX packets 1035989265 bytes 1458478887585 (1.3 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
And I couldn't find a machine old enough to generate the type of output in the
tests *and* have modern ip6tunnel drivers on it. So don't ask. :)
2. Only iproute2 shows the extra tunnel info anyway, so it's not really useful
to do have the interface in the ifconfig output.
Note I will backport this to Ohai 8 after this is merged.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Added systemd-nspawn virtualization detection
|
| |
| |
| |
| | |
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Journal and spare devices are important to report clearly. This puts
them in their own arrays.
I'd like to backport this to 12.x - but it's unclear here what
backwards compat here is.
I *could* put *all* devices into `members` and then also specify special
members in their own list... but prior to me fixing this plugin a few
months, ago, spares and journal wouldn't have been reported anyway...
and it is probably incorrect to report them as normal members... so this
feels like a further fix on a previous fix, so I've opted for just
fixing it. However, let me know how you guys feel.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|
|
|
| |
Signed-off-by: Dzmitry Pasiukevich <dpasiukevich@gmail.com>
|
|
|
|
| |
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|
|
|
|
|
| |
Make sure we have line returns as well since that's burned us before in specs
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
| |
All we have is the main rackspace attribute and since we're checking
ruby versions in the method we can't really mock out the wmi stuff.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
epoch
Signed-off-by: rmcleod8 <richard.mcleod@gmail.com>
|
|
|
|
| |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
|
|
|
|
|
|
|
| |
PR #1047 allows a plugin to return partial data which may be incredibly
dangerous. It's a totally reasonable thing to want, however, so we gate
it behind a plugin config. However, the default behavior reverts to
where it was.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new Ohai configuration `critical_plugins` which will cause
Ohai to exit (or `fail` if inside of Chef) if the plugins in the list do
not run successfully.
This feature only supports Ohai 7-style named plugins, not the ancient
Ohai 6-style stuff.
Tests to follow, but:
```
$ cat /home/phild/ohai.rb
ohai.critical_plugins << :Filesystem
$ ./bin/ohai -c /home/phild/ohai.rb
[2017-10-03T13:43:14-07:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2017-10-03T13:43:14-07:00] ERROR: The following plugins marked as critical failed: [:Filesystem]
```
And when I run Chef:
```
[2017-10-03T13:44:11-07:00] FATAL: RuntimeError: The following plugins marked as critical failed: [:Filesystem2]. Failing Chef run.
```
This fixes #879.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|\
| |
| | |
Add Arch Linux support to package plugin
|
| |
| |
| |
| | |
Signed-off-by: William Osler <oslerw@fb.com>
|
|\ \
| | |
| | | |
Detect LXC if LXC and Docker are on the same host
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
|\ \ \
| | | |
| | | | |
Add Azure metadata endpoint support
|
| | | |
| | | |
| | | |
| | | | |
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: 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: Tim Smith <tsmith@chef.io>
|
|\ \ \ \
| | | | |
| | | | | |
Add error handling in Linux filesystem plugin
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
| |/ / /
| | | |
| | | |
| | | | |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: richard mcleod <rmcleod8@bloomberg.net>
|
| |/ /
|/| |
| | |
| | | |
Signed-off-by: richard mcleod <richard.mcleod@gmail.com>
|
|\ \ \
| |/ /
|/| | |
Handle situations where /proc/cpuinfo lacks core data
|
| |/
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: Richard Mcleod <richard.mcleod@gmail.com>
|
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
```# ohai ipaddress ``` returns following warnings and replaces the node IP address with a blank IP
after chef-client run
```
[2017-07-07T20:36:32+00:00] WARN: [inet] no ip address on net0
[2017-07-07T20:36:32+00:00] WARN: unable to detect ipaddress
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.19.1/lib/ohai/system.rb:193:in `attributes_print': I cannot find an attribute named ipaddress! (ArgumentError)
```
Tested this fix on solaris11 client node and verfied IP address was retained after ccr.
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
|
|\
| |
| | |
PR #1016 with updates
|