Guest User

Untitled

a guest
Oct 26th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. <0>root@blade214(1)~$ cat /tmp/t.pp
  2. class foo {
  3.     $t=hiera('foo')
  4.     notify { "$t": }
  5. }
  6.  
  7. include foo
  8. <0>root@blade214(2)~$ puppet apply /tmp/t.pp
  9. calling module is:
  10. /Stage[main]/Foo/Notify[calling module is: ]/message: defined 'message' as 'calling module is: '
  11. Finished catalog run in 0.34 seconds
  12. <0>root@blade214(3)~$ hiera foo environment=production foo=bar calling_module=foo
  13. calling module is: foo
  14. <0>root@blade214(4)~$ cat /home/gitsync/puppet/production/hiera/common/common.yaml
  15. # defaults
  16. ---
  17. foo: "calling module is: %{calling_module}"
  18. <0>root@blade214(5)~$
Advertisement
Add Comment
Please, Sign In to add comment