Report abuse

test.pp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env puppet

$x = "10"

if $x > 2 {
  notify { "x is greater than two": }
} else {
  notify { "x is not greater than two": }
}

$y = 10
if $y > 2 {
  notify { "y is greater than two": }
} else {
  notify { "y is not greater than two": }
}

output (plain_text)

1
2
3
4
5
6
7
8
9
aj@junglist /tmp$ ./test.pp --debug
debug: Creating default schedules
debug: //Notify[y is not greater than two]: Changing message
debug: //Notify[y is not greater than two]: 1 change(s)
notice: y is not greater than two
debug: //Notify[x is not greater than two]: Changing message
debug: //Notify[x is not greater than two]: 1 change(s)
notice: x is not greater than two
debug: Finishing transaction -612211508 with 2 changes