Skip to content

Instantly share code, notes, and snippets.

@zeroDivisible
Created January 20, 2014 14:04
Show Gist options
  • Save zeroDivisible/8520427 to your computer and use it in GitHub Desktop.
Save zeroDivisible/8520427 to your computer and use it in GitHub Desktop.
how to get node IP address from within .erb file using chef and vagrant
node[:network][:interfaces][:eth1][:addresses].detect{|k,v| v[:family] == "inet" }.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment