you will need to run the puppet agent with --verbose (or --test which implied verbose) to actually display the output in the terminal.
On 18 June 2014 12:23, Malintha Adikari <[email protected]> wrote: > Hi, > > I am executing a shell script in the puppet agent side. If I execute the > same shell script in my local machine it will print several log messages to > terminal. But when I execute it in the puppet agent it does not print any > log into the agent terminal. How can I print the logs of the shell script > when I run it using puppet ? I am using following command to execute the > shell script. > > exec { "strating": > user => 'root', > environment => 'JAVA_HOME=/home/malintha/jdk1.6.0', > path => $command_path, > command => "/pathToShellScript/myScript.sh", > * logoutput => true,* > timeout => 3600, > require => Exec['another goal'], > } > > Regards, > Malintha Adikari > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/dc3a5a66-8f3d-4efc-b1ab-e0f262efa746%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/dc3a5a66-8f3d-4efc-b1ab-e0f262efa746%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Erik Dalén -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAAzDLeQgOt4T4Wqy4U-rtcVquimBC50%2BFFPd%3DxjrzzNikNW1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
