sous-chefs / network_interfaces

Development repository for the network_interfaces cookbook

Home Page:https://supermarket.chef.io/cookbooks/network_interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network_interfaces

Cookbook Version Travis status

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 :

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.

About

Development repository for the network_interfaces cookbook

https://supermarket.chef.io/cookbooks/network_interfaces

License:Other


Languages

Language:Ruby 92.0%Language:HTML 8.0%