| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
In Ruby 2+ this is the default.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Readme updates
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| |/
|/| |
Handle IP to int conversion for inet + inet6
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- IPv4 can have IPv6 next hops, so we could use the wrong `.to_u*` method
- Lets try both before throwing on int conversions for sorting purposes
Addresses more for #1474
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| |/
|/| |
Use .match? when we don't need the result
|
|/
|
|
|
|
| |
Avoid creating a bunch of match objects when we're not going to use the match results.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Linux network plugin: Handle IPv6 next hops for IPv4 routes
|
| |
| |
| |
| |
| |
| | |
- Show the regex working ...
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| |
| | |
Save regex lookup each iteration. This is hot.
Co-authored-by: pete higgins <pete@peterhiggins.org>
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Add handling for `via` where the inet6 address family is specified
- Add rspec test to show working
Addresses part of #1474
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| | |
| | | |
Fix docker detection in ohai virtualization
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We ran into an issue where when running in docker containers on GH
Actions (which is on azure which is on HyperV), we were getting detected
as being run on a hyperv guest... which is indirectly true, but not
really the most correct answer.
It turns out we were being a bit too strict in this regex. I think.
So here's the `/proc/self/cgroup`:
```
12:blkio:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
11:devices:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
10:memory:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
9:freezer:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
8:cpuset:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
7:pids:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
6:rdma:/
5:hugetlb:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
4:perf_event:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
3:cpu,cpuacct:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
2:net_cls,net_prio:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
1:name=systemd:/actions_job/4ab5ebdc794956d804d03db04557c8b79fa985cbf54bc25f51f2b0848e3f58bd
0::/system.slice/docker.service
```
As you can see the second field (or 1st field if you 0-index) is empty,
and it's still docker.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Make sure Darwin hosts are always mac_os_x
|
|/
|
|
|
|
|
|
|
| |
mac_os_x_server isn't a thing anymore and no third party darwin based
operating systems ever took off. Fix this detectio and speed things up
a tiny bit by assuming darwin == mac_os_x just like we already do with
the platform_family
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Remove an internal reference to blacklist
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
It's past time for this term to go away, even when it's just the name of
a method.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Depend on chef-utils gem so we can use ChefUtils::Mash
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
|
|
|
| |
Add chef-utils as a dependency and use the ChefUtils Mash
implementation for ohai.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Add new selinux plugin for Linux
|
| |
| |
| |
| | |
Signed-off-by: Davide Cavalca <dcavalca@fb.com>
|
| |
| |
| |
| | |
Signed-off-by: Davide Cavalca <dcavalca@fb.com>
|
| |
| |
| |
| | |
Signed-off-by: Davide Cavalca <dcavalca@fb.com>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| |/
|/| |
Avoid constant warnings when reloading ohai plugins
|
|/
|
|
|
|
|
|
|
|
| |
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:23: warning: previous definition of DMI_TO_WIN32OLE was here
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:39: warning: already initialized constant SPLIT_REGEX
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:39: warning: previous definition of SPLIT_REGEX was here
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:41: warning: already initialized constant WINDOWS_TO_UNIX_KEYS
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ohai-16.0.19/lib/ohai/plugins/windows/dmi.rb:41: warning: previous definition of WINDOWS_TO_UNIX_KEYS was here
Signed-off-by: Tim Smith <tsmith@chef.io>
|