| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
I can't see a place where we're using this.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Simplify FIPS plugin and use system fips status
|
| |
| |
| |
| |
| |
| | |
Don't rely on fips being enabled by chef-config. Pull the system status instead.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| |/
|/| |
Use match? instead of =~ when MatchData is not used
|
| |
| |
| |
| |
| |
| | |
Don't run match? against nil
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
We don't need this data.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Add Address Family Check to route_is_valid_default_route?
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- We can now have IPv6 next hops for IPv4 routes in Linux
- We don't have enough information to validate the route as valid if they are differen address families
Test:
- Add an rspec test to show it returning false like we'd hoped
- Have also tested on Facebook servers internally
Signed-off-by: Cooper Lees <me@cooperlees.com>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| | |
| | | |
Use .find instead of .select.first
|
|/ /
| |
| |
| |
| |
| | |
Avoid creating and object we don't need.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\ \
| |/
|/| |
Faster ruby language plugin
|
|/
|
|
|
|
| |
This drops two additional shell outs to run ruby.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Spelling fixes
|
|/
|
|
|
|
| |
Pull in the latest rake task, fix some variable names, fix a few legit typos.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Obvious fix; these changes are the result of automation not creative thinking.
|
|\
| |
| | |
Remove redundant file encoding in spec
|
| |
| |
| |
| |
| |
| | |
In Ruby 2+ this is the default.
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.
|
|\
| |
| | |
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>
|