class testmodule {
exec {"TEST-EXEC" :
cwd => "/tmp/",
command =>"/usr/bin/touch /tmp/7777 >/tmp/123 2>&1",
timeout => 5,
logoutput=> on_failure
}
}
info: Applying configuration version '1265719507'
debug: //testmodule/Exec[TEST-EXEC]: Changing returns
debug: //testmodule/Exec[TEST-EXEC]: 1 change(s)
debug: //testmodule/Exec[TEST-EXEC]: Executing '/usr/bin/touch /tmp/7777'
debug: Executing '/usr/bin/touch /tmp/7777'
err: //testmodule/Exec[TEST-EXEC]/returns: change from notrun to 0 failed: Command exceeded timeout at /etc/puppet/modules/testmodule/manifests/init.pp:6
debug: Finishing transaction 69914685668640 with 1 changes
debug: Storing state
debug: Stored state in 0.01 seconds
debug: Format pson not supported for Puppet::Transaction::Report; has not implemented method 'from_pson'
debug: Format s not supported for Puppet::Transaction::Report; has not implemented method 'from_s'
notice: Finished catalog run in 5.12 seconds