Agreed with everything Schmitt said. This isn't what mcollective is for, that's not how it works, there are tools made especially for this, etc. I'm not saying it isn't possible if you jump through enough hoops. I'm just saying it's an incredibly bad idea.
On Mon, Jul 14, 2014 at 2:41 PM, Andrii Kalytiuk <akalyt...@gmail.com> wrote: > Hi, > > I look into ways to use MCollective to *run test automation* on lab > machines. > > After couple of days of research I still have a question *is MCollective > is right tool* to perform all required routines. > > *So my question is:* > *Will it be proper* to use MCollective for following operations on > Windows nodes - using own custom agents: > > 1. Wait for server node (virtual machine) to become responsive after > revert > 2. Copy file with (test automation data) from network location > 3. Unzip test automation files > 4. Update content of config files on machine > > Have you looked into Puppet? It does exactly what you want in steps 2-4 (maybe step 1 as well, with some additional tools). > > 1. Run command line utility to execute test automation. > - Takes from couple of minutes to hour or more > - Console output to be returned to MCollective client > - Output returns to client gradually (more or less shortly after it > is produced on server) > - *Is it possible to send responses to prompts of interactive > command line application?* > > No, mcollective doesn't do this. Mcollective tasks shouldn't (can't?) work that way. AFAIK, you tell an mco server to do something, and eventually it tells you *that the server received the request to do something* (reply). Also, why is your testing prompting you interactively? How do you get reproducable tests? Or examine the output later? > > - > 1. Archive certain files on server > 2. Copy zip file with output files to network location > > As I get from documentations all points except 5th can be implemented as a > single or several command line calls. > > *So main questions are:* > Is it possible to use MCollective to execute long-running command line > utility on server and gradually return to client output of the utility as > it is produced? > Is it possible to implement interaction with a command line application > which prompts for additional user inputs on server (e. g. non-silent > installation)? > > Thank you. > > Andrii > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/6a928f6f-2381-4bcc-826f-70c58a0ce579%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/6a928f6f-2381-4bcc-826f-70c58a0ce579%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAFt4V4km4dDLL%3DGkRLLt-JhOc0EdfULbYP4uSQpU7Y4d%3Dfwd5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.