Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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",
    }
  }
}