Chef cookbook which allows to install iproute2 as a service...
To use the Vagrantfile, you need to install some plugins :
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-cachier
Ubuntu/Debian
Key | Type | Description | Default |
---|---|---|---|
['iproute2']['package'] | String | iproute2 package name | iproute2 |
['iproute2']['start'] | StringArea | Successive portions of the ip command of the start service | nil |
['iproute2']['stop'] | StringArea | Successive portions of the ip command of the stop service | nil |
eg (Allows to make an adsl aggregator...)
- default['iproute2']['stop'] = [ "ip route add default dev eth0" ]
- default['iproute2']['start'] = [ "ip route add default scope global" ]
- default['iproute2']['start'].push( "nexthop via 192.198.7.3 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.4 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.5 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.6 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.7 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.8 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.9 weight 1" )
- default['iproute2']['start'].push( "nexthop via 192.198.7.10 weight 1" )
Include iproute2
in your node's run_list
:
{
"run_list": [
"recipe[iproute2::default]"
]
}
Author:: PE, pf. (philippe.eychart@mail.pf)