Skip to content

Instantly share code, notes, and snippets.

@llowder
Created September 27, 2016 14:20
Show Gist options
  • Save llowder/33aa91d728786779b4981535e94d2cba to your computer and use it in GitHub Desktop.
Save llowder/33aa91d728786779b4981535e94d2cba to your computer and use it in GitHub Desktop.
Example yaml for a hiera lookup
hosts::host_entries:
"%{facts.networking.fqdn}":
ensure: absent
ip: 127.0.0.1
host_aliases:
- "%{facts.networking.hostname}"
- localhost
- localhost.localdomain
- localhost4
- localhost4.localdomain4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment