summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb
blob: 149b2cb65cbad0e256849327379277efc22b87c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
execute "create virtual interface for testing" do
  command "ifconfig eth0:0 123.123.22.22"
end

ifconfig "33.33.33.80" do
  bootproto "dhcp"
  device "eth0:0"
end

ifconfig "Set eth1 to DHCP" do
  device "eth0:0"
  bootproto "dhcp"
end