Guest User

Untitled

a guest
May 27th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ## test.pp
  2. #!/usr/bin/env puppet
  3.  
  4. $x = "10"
  5.  
  6. if $x > 2 {
  7. notify { "x is greater than two": }
  8. } else {
  9. notify { "x is not greater than two": }
  10. }
  11.  
  12. $y = 10
  13. if $y > 2 {
  14. notify { "y is greater than two": }
  15. } else {
  16. notify { "y is not greater than two": }
  17. }
  18. ## output [plain_text]
  19. aj@junglist /tmp$ ./test.pp --debug
  20. debug: Creating default schedules
  21. debug: //Notify[y is not greater than two]: Changing message
  22. debug: //Notify[y is not greater than two]: 1 change(s)
  23. notice: y is not greater than two
  24. debug: //Notify[x is not greater than two]: Changing message
  25. debug: //Notify[x is not greater than two]: 1 change(s)
  26. notice: x is not greater than two
  27. debug: Finishing transaction -612211508 with 2 changes
Add Comment
Please, Sign In to add comment