Guest User

Untitled

a guest
Oct 29th, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <0>root@blade214(24)~$ cat /etc/hiera.yaml
  2. ---
  3. :backends:
  4. - yaml
  5.  
  6. :logger: console
  7.  
  8. :hierarchy:
  9. - "D:h=(%{hostname}),cm=(%{calling_module}),mn=(%{module_name}),cmn=(%{caller_module_name})"
  10.  
  11. :yaml:
  12. :datadir: /home/gitsync/puppet/%{environment}/hiera
  13.  
  14. <0>root@blade214(25)~$ puppet apply /tmp/t.pp --debug
  15. Debug: hiera(): Hiera YAML backend starting
  16. Debug: hiera(): Looking up foo in YAML backend
  17. Debug: hiera(): Looking for data source D:h=(blade214),cm=(),mn=(),cmn=()
  18. Debug: hiera(): Cannot find datafile /home/gitsync/puppet/production/hiera/D:h=(blade214),cm=(),mn=(),cmn=().yaml, skipping
  19. Error: Could not find data item foo in any Hiera data file and no default supplied at /tmp/t.pp:2 on node blade214.non.3dart.com
  20. Error: Could not find data item foo in any Hiera data file and no default supplied at /tmp/t.pp:2 on node blade214.non.3dart.com
Advertisement
Add Comment
Please, Sign In to add comment