node default {
notify { $operatingsystem: }
exec { "ls":
path => "/bin",
require => $operatingsystem ? {
default => Exec["tree src"],
'Darwin' => Exec["tree rolling"],
},
}
if ($operatingsystem == undef) {
exec { "tree src":
path => "/opt/local/bin",
}
}
if ($operatingsystem == 'Darwin') {
exec { "tree rolling":
path => "/opt/local/bin",
}
}
}