Josh, I need to push and install python.msi package on win host. Should I use "exec" block or "package" instead? I am not sure, pls confirm. THanks!
Viktoriya ________________________________ From: Josh Cooper <j...@puppetlabs.com> To: Viktoriya Tochilnikova <vt...@yahoo.com> Sent: Monday, July 9, 2012 7:42 PM Subject: Re: [Puppet Users] manifest for files executable on windows Great to hear. Can you post your final manifest to the user list? Thanks, Josh On Jul 9, 2012, at 7:28 PM, Viktoriya Tochilnikova <vt...@yahoo.com> wrote: Yes, I figured that one out. Also, I have found the version of the winpcap that can be installed silently as well. I got whole thing to work!!! Thanks. > > >Viktoriya > > > > > >________________________________ > From: Josh Cooper <j...@puppetlabs.com> >To: Viktoriya Tochilnikova <vt...@yahoo.com> >Sent: Monday, July 9, 2012 5:21 PM >Subject: Re: [Puppet Users] manifest for files executable on windows > >Btw, I found this link >http://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallWinInstall.html > >"/S runs the installer or uninstaller silently with default values. >Please note: The silent installer won't install WinPCap!" > >So you will need to pass /S in your exec, but you will also need to >install winpcap separately. I'm not sure why wireshark doesn't install >winpcap in silent mode. Seems odd. > >HTH, >Josh > >On Mon, Jul 9, 2012 at 4:56 PM, Josh Cooper <j...@puppetlabs.com> wrote: >> You will have to google to see how to install wireshark silently. This >> isn't a puppet issue, it's a wireshark installer issue. Figure out >> whatever the argument is, verify you can install wireshark from the >> command line silently, and then tell puppet to use the same >> argument(s). >> >> Josh >> >> On Mon, Jul 9, 2012 at 4:33 PM, Viktoriya Tochilnikova <vt...@yahoo.com> >> wrote: >>> I have no idea what args I need to specify. Can you be more detailed? Tell >>> me exactly what I need to put into my 'exec' block to make this installer >>> work automatically. Many Thanks!!!! >>> Viktoriya >>> >>> >>> ________________________________ >>> From: Josh Cooper <j...@puppetlabs.com> >>> To: Viktoriya Tochilnikova <vt...@yahoo.com> >>> Sent: Monday, July 9, 2012 4:28 PM >>> >>> Subject: Re: [Puppet Users] manifest for files executable on windows >>> >>> This is an issue with the wireshark installer. You'll need to specify >>> the appropriate set of arguments to install wireshark silently. >>> >>> On Mon, Jul 9, 2012 at 4:15 PM, Viktoriya Tochilnikova <vt...@yahoo.com> >>> wrote: >>>> I got it to work, BUT installation of the wireshark is NOT happening >>>> automatically - the agent is popping up the first screen of the installer. >>>> WHY? I am looking for the automated install, without user intervention. >>>> Thanks. >>>> >>>> Viktoriya >>>> >>>> >>>> ________________________________ >>>> From: Josh Cooper <j...@puppetlabs.com> >>>> To: Viktoriya Tochilnikova <vt...@yahoo.com> >>>> Sent: Monday, July 9, 2012 4:03 PM >>>> >>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>> >>>> Hi Viktoriya, >>>> >>>> On Mon, Jul 9, 2012 at 3:38 PM, Viktoriya Tochilnikova <vt...@yahoo.com> >>>> wrote: >>>>> C:\Windows\system32>puppet agent --test --server qalab2.pertino.com >>>>> err: Could not request certificate: The certificate retrieved from the >>>>> master do >>>>> es not match the agent's private key. >>>>> Certificate fingerprint: 7D:4B:96:E0:FD:80:30:E5:94:AC:77:0E:39:D5:EF:28 >>>>> To fix this, remove the certificate from both the master and the agent >>>>> and >>>>> then >>>>> start a puppet run, which will automatically regenerate a certficate. >>>>> On the master: >>>>> puppet cert clean homebasic32.pertino.com >>>>> On the agent: >>>>> rm -f >>>>> C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/homebasic32.pertino.com.p >>>>> em >>>>> puppet agent -t >>>>> Exiting; failed to retrieve certificate and waitforcert is disabled >>>>> >>>>> Viktoriya >>>>> >>>>> >>>> >>>> See http://docs.puppetlabs.com/windows/running.html#security-context. >>>> Basically, the master has already issued a certificate for that >>>> agent's name (the agent running in a non-elevated security context). >>>> You'll need to follow the instructions in the error message to reset >>>> the ssl state. >>>> >>>>> ________________________________ >>>>> From: Viktoriya Tochilnikova <vt...@yahoo.com> >>>>> To: Josh Cooper <j...@puppetlabs.com> >>>>> Sent: Monday, July 9, 2012 3:35 PM >>>>> >>>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>>> >>>>> If I run an agent with Admin privileges, I am getting a cert related >>>>> error. >>>>> It's asking to remove certs on master and agent and generate them again. >>>>> Is >>>>> this safe? Is this expected? Why do certificates work in not-Admin mode? >>>>> >>>>> Thanks, >>>>> Viktoriya >>>>> >>>>> >>>>> ________________________________ >>>>> From: Josh Cooper <j...@puppetlabs.com> >>>>> To: Viktoriya Tochilnikova <vt...@yahoo.com> >>>>> Sent: Monday, July 9, 2012 3:24 PM >>>>> >>>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>>> >>>>> On Mon, Jul 9, 2012 at 3:16 PM, Viktoriya Tochilnikova <vt...@yahoo.com> >>>>> wrote: >>>>>> I got an error with/without logoutput: >>>>>> >>>>>> C:\Program Files\Puppet Labs\Puppet Enterprise\bin>puppet agent --test >>>>>> --server >>>>>> qalab2.pertino.com >>>>>> info: Caching catalog for homebasic32.pertino.com >>>>>> info: Applying configuration version '1341871910' >>>>>> notice: >>>>>> /Stage[main]//File[C:\Users\vita\Downloads\Wireshark-win32-1.8.0.exe]/en >>>>>> sure: defined content as '{md5}1e791b80e0693e174c6666930b0728a9' >>>>>> err: >>>>>> >>>>>> >>>>>> >>>>>> /Stage[main]//Exec[C:\Users\vita\Downloads\Wireshark-win32-1.8.0.exe]/retur >>>>>> ns: change from notrun to 0 failed: CreateProcess() failed: The >>>>>> requested >>>>>> operat >>>>>> ion requires elevation. >>>>>> notice: Finished catalog run in 5.16 seconds >>>>>> What is wrong now? >>>>>> >>>>> >>>>> On UAC systems, you need to "run as administrator". See >>>>> >>>>> http://docs.puppetlabs.com/windows/running.html#running-other-puppet-tasks >>>>> >>>>>> Thanks, >>>>>> >>>>>> Viktoriya >>>>>> >>>>>> >>>>>> From: Josh Cooper <j...@puppetlabs.com> >>>>>> To: Viktoriya Tochilnikova <vt...@yahoo.com> >>>>>> Cc: "puppet-users@googlegroups.com" <puppet-users@googlegroups.com> >>>>>> Sent: Monday, July 9, 2012 3:02 PM >>>>>> >>>>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>>>> >>>>>> Hi Viktoriya, >>>>>> >>>>>> On Mon, Jul 9, 2012 at 2:18 PM, Viktoriya Tochilnikova <vt...@yahoo.com> >>>>>> wrote: >>>>>>> I have figured it out and got it to work - my executable is getting >>>>>>> placed >>>>>>> on win machine. Great thanks, Josh. >>>>>>> How, I need to execute it. Here is my executable: >>>>>>> >>>>>>> exec { 'C:\Users\vita\Downloads\Wireshark-win32-1.8.0.exe': >>>>>>> creates => 'C:\Program Files\Wireshark\wireshark.exe' >>>>>>> } >>>>>>> >>>>>>> Is this correct? >>>>>>> >>>>>> >>>>>> Yes, looks good provided 'C:\Program Files\Wireshark\wireshark.exe' is >>>>>> the correct path for the installed executable. >>>>>> >>>>>> If you run into issues, try adding the `logoutput => true` parameter >>>>>> to the exec resource. >>>>>> >>>>>>> Viktoriya >>>>>>> >>>>>>> >>>>>>> ________________________________ >>>>>>> From: Viktoriya Tochilnikova <vt...@yahoo.com> >>>>>>> To: "puppet-users@googlegroups.com" <puppet-users@googlegroups.com> >>>>>>> Cc: Josh Cooper <j...@puppetlabs.com> >>>>>>> Sent: Monday, July 9, 2012 1:56 PM >>>>>>> >>>>>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>>>>> >>>>>>> Josh, >>>>>>> This is what I got this time, after fixing the source path. Pls help. >>>>>>> Great >>>>>>> Thanks! >>>>>>> C:\Program Files\Puppet Labs\Puppet Enterprise\bin>puppet agent --test >>>>>>> --server >>>>>>> qalab2.pertino.com >>>>>>> info: Caching catalog for homebasic32.pertino.com >>>>>>> info: Applying configuration version '1341867021' >>>>>>> err: >>>>>>> /Stage[main]//File[C:\Users\vita\Downloads\Wireshark-win32-1.8.0.exe]: >>>>>>> Coul >>>>>>> d not evaluate: Could not retrieve information from environment >>>>>>> production >>>>>>> sourc >>>>>>> e(s) puppet:///modules/wsh/Wireshark-win32-1.8.0.exe at >>>>>>> /etc/puppet/manifests/si >>>>>>> te.pp:8 >>>>>>> notice: Finished catalog run in 0.20 seconds >>>>>>>> >>>>>>> >>>>>>> Viktoriya >>>>>>> >>>>>>> >>>>>>> From: Josh Cooper <j...@puppetlabs.com> >>>>>>> To: Viktoriya Tochilnikova <vt...@yahoo.com> >>>>>>> Cc: "puppet-users@googlegroups.com" <puppet-users@googlegroups.com> >>>>>>> Sent: Monday, July 9, 2012 1:44 PM >>>>>>> Subject: Re: [Puppet Users] manifest for files executable on windows >>>>>>> >>>>>>> Hi Viktoriya, >>>>>>> >>>>>>> On Mon, Jul 9, 2012 at 1:18 PM, Viktoriya Tochilnikova >>>>>>> <vt...@yahoo.com> >>>>>>> wrote: >>>>>>>> >>>>>>>> Here is my file: >>>>>>>> >>>>>>>> file { 'C:\Users\v -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.