Skip to content

Instantly share code, notes, and snippets.

@walterheck
Created July 30, 2013 15:18
Show Gist options
  • Save walterheck/6113909 to your computer and use it in GitHub Desktop.
Save walterheck/6113909 to your computer and use it in GitHub Desktop.
[root@yomamma puppet]# hiera -d foreman::foreman_url -c hiera.yaml fqdn=yomamma.dedi.example.com
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Hiera YAML backend starting
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Looking up foreman::foreman_url in YAML backend
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Looking for data source common
nil
[root@yomamma puppet]# cat hiera.yaml
---
:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hieradata
:hierarchy:
- "fqdn/%{::fqdn}"
- "common"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment