Skip to content

Instantly share code, notes, and snippets.

@lak
Created July 23, 2009 07:19
Show Gist options
  • Select an option

  • Save lak/152500 to your computer and use it in GitHub Desktop.

Select an option

Save lak/152500 to your computer and use it in GitHub Desktop.
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