Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 11th, 2010 | Syntax: None | Size: 0.22 KB | Hits: 80 | Expires: Never
Copy text to clipboard
  1. class foo {
  2.   notice("class: foo")
  3.   exec { "foo_exec":
  4.     command => "/usr/bin/touch /tmp/testfile",
  5.   }
  6. }
  7.  
  8. class bar {
  9.   # require(Class["foo"])
  10.   require(Exec[foo_exec])
  11.   notice("class: bar")
  12. }
  13.  
  14. include bar