Skip to content

Instantly share code, notes, and snippets.

@stefhen
Created December 10, 2013 18:41
Show Gist options
  • Save stefhen/7895768 to your computer and use it in GitHub Desktop.
Save stefhen/7895768 to your computer and use it in GitHub Desktop.
Get public and private IP's of currently running server.
log "PUBLIC IP: #{node[:cloud][:public_ips][0]}\n"
log "PRIVATE IP: #{node[:cloud][:private_ips[0]}\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment