Hi Mario, On 21 March 2013 10:45, Mario Gzuk <[email protected]> wrote: > Hi, > I am currently working to integrate the Deploy task into uranos. Now I have > some questions about that: > > - how to run only a command without specify the jobs+checks and the > associatedFiles, I only want to have: > {"jobs":[{"actions":{"cmd":{"exec":"touch > \/tmp\/deploy"}},"maxValidityDate":1363853421}]} > but when I do this the agent says "uh oh associatedFiles missing" or > "ohhh u - checks in jobs missing", also if this is an empty hash/array
That's weird because as far as i can remember, I've already made package with only one command in GLPI but i can't remember what are the requirements. I should check that ... > - is the path where the files are stored from the download of > associatedFiles configurable? Actually no but you can workaround this by issuing a file copy or move in your actions. > - how to use the cmd:exec if I want to run one of the downloaded files from > associatedFiles Every files downloaded by the agent are stored in a working directory after multiparts concatenation. The commands are running in the same working directory. > - can i specify the full path + name in the associatedFiles:name attribute > so that it is stored e.g. in /tmp/name or %TEMP%/name? Like i said earlier, files are always stored in the deploy workdir. You can use the 'copy' or 'move' actions in order to circumvent this behaviour. > - are the files which are downloaded via associatedFiles automaticly deleted > after the jobs are done or should this be specified on the jobs:delete list? They normally are deleted whenever the job is completed or in error. The only exception is when P2P is enabled : the dowloaded files marked as P2P are kept until the retention period. Cheers, -- Kevin Roy _______________________________________________ Fusioninventory-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel
