Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created January 1, 2012 08:40
Show Gist options
  • Save ohadlevy/1546749 to your computer and use it in GitHub Desktop.
Save ohadlevy/1546749 to your computer and use it in GitHub Desktop.
# hosts with ip address and gateway facts
$hosts = foreman("fact_values", "fact = ipaddress or fact = gateway"
{"hostA":{"ipaddress":"10.35.27.3","gateway":"10.35.27.62"},"hostsB":{"ipaddress":"192.168.1.123","gateway":"192.168.1.254"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment