ifconfig resource doesn't work on MacOS
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 8.2k
- Forks
- 2.5k
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 23
Description
Description
ifconfig on MacOS doesn't have --version option so ifconfig resource asks to install net-tools (it doesn't exist on Mac)
https://github.com/chef/chef/commit/a073871748ea5d93b4f39d517447e56c6801414b
Chef Version
14
Platform Version
System Info:
chef_version=14.0.202
platform=macos
platform_version=12.0.1
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin15]
program_name=/usr/local/bin/chef-client
executable=/opt/chef/bin/chef-client
Replication Case
Use ifconfig resource on MacOS
Client Output
RuntimeError
net-tools not found - this is required for ifconfig
Resource Declaration:
In /var/chef/cache/cookbooks/ph_network_mac/recipes/ipsec.rb
ifconfig OWN_IP do
device "bridge0"
mask "255.255.255.0"
onboot "yes"
notifies :run, "execute[add route 10.0.0.0/8]", :immediately
end
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the ifconfig resource on macOS using the declaration in cookbooks/ph_network_mac/recipes/ipsec.rb. Review the linked commit and the resource behavior around macOS; done means the resource no longer requires the unavailable net-tools package on macOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100