[Fusioninventory-devel] Task:Deploy Questions

2013-03-21 Par sujet Mario Gzuk

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
- is the path where the files are stored from the download of 
associatedFiles configurable?
- how to use the cmd:exec if I want to run one of the downloaded files 
from associatedFiles
- 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?
- 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?


Thank you!

___
Fusioninventory-devel mailing list
Fusioninventory-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel


Re: [Fusioninventory-devel] Task:Deploy Questions

2013-03-21 Par sujet Kevin Roy
Hi Mario,

On 21 March 2013 10:45, Mario Gzuk mariog...@technikz.de 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
Fusioninventory-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel


Re: [Fusioninventory-devel] Task:Deploy Questions

2013-03-21 Par sujet Mario Gzuk

Hi Kevin!
Thank you for this fast answer.

Am 21.03.2013 18:12, schrieb Kevin Roy:

Hi Mario,


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 ...


That yould be nice... I only need an example how I can do 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.


Ok. That is a solution for me...




- 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



Ok, the files which will be executed (e.g. test.bat) will be deleted 
that is true. But the filecontent is also available at 
.../var/bla/deploy/fileparts/private/1364129200/a/6/1ea1bc
This files also should be deleted because (for my situation) there might 
be sensetive data inside, and so it would be nessesary that this files 
get deleted to... Is this a feature request?


And a last question. I use the wmi to determine the language of the 
operating system in windows:

http://uranos.svn.sourceforge.net/viewvc/uranos/z/bin/getlang.js
When I run this normaly I get en or de - but when it is executed 
through the deploy task is says that the language is C... What the 
(perl)... ;) How can I correct this?



Thank you again!

___
Fusioninventory-devel mailing list
Fusioninventory-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel