[rudder-users] ncf builder

Nicolas Charles nicolas.charles at normation.com
Sat Sep 27 18:08:20 CEST 2014


Le 27 septembre 2014 16:41:54 CEST, Maxime Longuet <m.longuet at itika.net> a écrit :
>
>Hello, (again.. :)
>
>I continu test of ncf-builder.
>
>If i've a method "Command execution"
>
>In this method i'm put a : tar -xzf myfile.tgz
>
>the result of this command is "unknown" because he don't return code :
>command_execution_tar__xzf_myfile_tgz_kept    ??? is it ?
>
>
>I must write  bash script for all command who i want ? 
>
>Maxime
>
>
>_______________________________________________
>rudder-users mailing list
>rudder-users at lists.rudder-project.org
>http://www.rudder-project.org/mailman/listinfo/rudder-users

Hi Maxime,

For command execution, you need to use the full path of the command, so /bin/tar

And a command execution never defines a _kept class suffix, but _repaired if it could execute it, or _error if it fails.
The logic behind this is _kept means the state of the system was correct and nothing needed to be done. Executing a command is an action made, so it can't be _kept

Does it help ?

Nicolas
-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140927/3d11ea5d/attachment.html>


More information about the rudder-users mailing list