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'],
}
Note: I set logoutput => true