Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $ cat livcd.pp
  2.  
  3. node default {
  4. contain roles::foo_box
  5. }
  6.  
  7. class roles::foo_box {
  8. include profiles::base
  9. include profiles::dev
  10. Class['profiles::base'] -> Class['profiles::dev']
  11. }
  12.  
  13. class profiles::dev {
  14. }
  15.  
  16. class profiles::base {
  17. contain foobar
  18. }
  19.  
  20. class foobar {
  21. notify { 'YAHOOO': }
  22. }
  23.  
  24.  
  25. $ puppet apply livcd.pp
  26. Notice: Compiled catalog for tamborine.corp.puppetlabs.net in environment production in 0.05 seconds
  27. Notice: YAHOOO
  28. Notice: /Stage[main]/Foobar/Notify[YAHOOO]/message: defined 'message' as 'YAHOOO'
  29. Notice: Applied catalog in 0.02 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement