public
Last active

ohai plugin for setting the ipaddress to the eth1. This is particularly useful for running multi-vm vagrant with chef trying to connect the various boxes

  • Download Gist
vagrant-net.rb
Ruby
1 2 3 4 5 6 7
provide "ipaddress"
require_plugin "#{os}::network"
network["interfaces"]["eth1"]["addresses"].each do |ip, params|
if params['family'] == ('inet')
ipaddress ip
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.