Created
January 20, 2014 14:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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