Created
November 1, 2009 17:46
-
-
Save stahnma/223634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#init.pp | |
exec { "/home/stahnma/bin/myscript": | |
path => ["/usr/bin", "/usr/sbin"], | |
} | |
#myscript | |
#!/bin/bash | |
echo "hello world" | |
exit 0 | |
# output | |
stahnma@duo /home/stahnma/development/puppet-modules/test_exec/manifests> puppet --debug init.pp | |
debug: Creating default schedules | |
debug: //Exec[/home/stahnma/bin/myscript]: Changing returns | |
debug: //Exec[/home/stahnma/bin/myscript]: 1 change(s) | |
debug: //Exec[/home/stahnma/bin/myscript]: Executing '/home/stahnma/bin/myscript' | |
debug: Executing '/home/stahnma/bin/myscript' | |
notice: //Exec[/home/stahnma/bin/myscript]/returns: executed successfully | |
debug: Finishing transaction 70227119585940 with 1 changes | |
# puppet-version | |
puppet-0.24.8-4.fc11.noarch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment