Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Last active September 29, 2015 04:27
Show Gist options
  • Save ohadlevy/1546750 to your computer and use it in GitHub Desktop.
Save ohadlevy/1546750 to your computer and use it in GitHub Desktop.
# hosts with ip address and gateway facts
$hosts = foreman(item => 'fact_values', search => '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