Created
July 23, 2009 07:19
-
-
Save lak/152500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exec { path => "/usr/bin:/usr/sbin:/bin" } | |
| class cc { notify { 'cc': } } | |
| define util() { | |
| exec { "util_$name": command => 'echo hoho', require => Class[cc] } | |
| } | |
| define job() { | |
| include cc | |
| exec { "job_$name": command => "echo foo", require => Class[cc] } | |
| } | |
| class app { | |
| util { 'test': } | |
| exec { 'app': command => 'echo hello', refreshonly => true, subscribe => Exec['util_test'] } | |
| } | |
| node default { | |
| include app | |
| #include cc | |
| job { 'blah': require => Class[app] } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment