https://github.com/sous-chefs/network_interfaces
Development repository for the network_interfaces cookbook
https://github.com/sous-chefs/network_interfaces
chef chef-cookbook chef-resource hacktoberfest managed-by-terraform network-interfaces
Last synced: 3 months ago
JSON representation
Development repository for the network_interfaces cookbook
- Host: GitHub
- URL: https://github.com/sous-chefs/network_interfaces
- Owner: sous-chefs
- License: other
- Created: 2012-04-22T20:30:25.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T00:53:30.000Z (over 1 year ago)
- Last Synced: 2024-04-14T11:03:41.912Z (about 1 year ago)
- Topics: chef, chef-cookbook, chef-resource, hacktoberfest, managed-by-terraform, network-interfaces
- Language: Ruby
- Homepage: https://supermarket.chef.io/cookbooks/network_interfaces
- Size: 130 KB
- Stars: 24
- Watchers: 22
- Forks: 28
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# network_interfaces
[](https://community.opscode.com/cookbooks/network_interfaces)
[](https://travis-ci.org/redguide/network_interfaces)## Description
Manage `/etc/network/interfaces` on Debian/Ubuntu
## Attributes
* `node['network_interfaces']['replace_orig']` - Replaces `/etc/network/interfaces` if set to `true`
## Usage
example for a bridge with pre-up and pre-down script :
```ruby
include_recipe 'network_interfaces'network_interfaces 'br-test' do
target '172.16.88.2'
mask '255.255.255.0'
bridge [ 'none' ]
pre_up 'cat /tmp/iptables-create | iptables-restore -n'
post_down 'cat /tmp/iptables-delete | iptables-restore -n'
end
```More documentation later.