Skip to content

Instantly share code, notes, and snippets.

@reset
Created March 2, 2012 23:44
Show Gist options
  • Save reset/1962467 to your computer and use it in GitHub Desktop.
Save reset/1962467 to your computer and use it in GitHub Desktop.
provides "ipaddress"
provides "macaddress"
require_plugin "network"
ip, mac = find_ip_and_mac(network["interfaces"]["eth1"]["addresses"])
ipaddress ip
macaddress mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment