I''m trying to install python (via msi) onto a windows 2008R2 box. I''m using puppet 3.1 on the client, 3.0.2 on the puppet server. Here is my install.pp: class python::install { package { ''python'': ensure => installed, provider => ''msi'', source => ''\\\\example.com\\software\\python\\python-2.7.3.amd64.msi'', install_options => [ { ''INSTALLDIR'' => ''C:\python27'' }, { ''ALLUSERS'' => ''1'' } ], } } I can see the "msiexec" process running on the client, but it seems to run forever without installing anything. Any help would be greatly appreciated! -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Matt F
2013-May-07 17:26 UTC
[Puppet Users] Re: Need help with python msi install on windows
Bump. Any help on this would be GREATLY appreciated! I also notice in the windows event log that I get the error "Failed to install: Fail on INT 24." and "/Stage[main]/Python::Install/Package[python]/ensure: change from absent to present failed: Failed to install: Fail on INT 24." I''ve tried running "puppet apply --debug --trace" from a "command prompt with puppet", but this just hangs. On Friday, May 3, 2013 1:53:12 PM UTC-4, Matt F wrote:> > I''m trying to install python (via msi) onto a windows 2008R2 box. I''m > using puppet 3.1 on the client, 3.0.2 on the puppet server. Here is my > install.pp: > > class python::install { > package { ''python'': > ensure => installed, > provider => ''msi'', > source => ''\\\\example.com > \\software\\python\\python-2.7.3.amd64.msi'', > install_options => [ { ''INSTALLDIR'' => ''C:\python27'' }, { > ''ALLUSERS'' => ''1'' } ], > } > } > > I can see the "msiexec" process running on the client, but it seems to run > forever without installing anything. > > Any help would be greatly appreciated! >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Josh Cooper
2013-May-21 04:49 UTC
Re: [Puppet Users] Re: Need help with python msi install on windows
Hi Matt, On Tue, May 7, 2013 at 10:26 AM, Matt F <mfan2006@gmail.com> wrote:> Bump. Any help on this would be GREATLY appreciated! I also notice in the > windows event log that I get the error "Failed to install: Fail on INT > 24." and "/Stage[main]/Python::Install/Package[python]/ensure: change from > absent to present failed: Failed to install: Fail on INT 24." >You may be running into http://projects.puppetlabs.com/issues/20534. May sure to use backslashes, but don''t escape them, e.g. ''\\server\share\python.msi''> I''ve tried running "puppet apply --debug --trace" from a "command prompt > with puppet", but this just hangs.Are you running as an administrator? Do you have any custom facts (if so, check that they aren''t executing a command that is hanging waiting for input, e.g. date.exe). I recommend installing process explorer and see what puppet''s ruby.exe process is executing. Also verify that the MSI can be installed silently from the command line directly (msiexec.exe /qn /norestart /i python.msi. It is up to the MSI author to ensure that it abides by the specified UI level.> > > > On Friday, May 3, 2013 1:53:12 PM UTC-4, Matt F wrote: >> >> I''m trying to install python (via msi) onto a windows 2008R2 box. I''m >> using puppet 3.1 on the client, 3.0.2 on the puppet server. Here is my >> install.pp: >> >> class python::install { >> package { ''python'': >> ensure => installed, >> provider => ''msi'', >> source => ''\\\\example.com\\software\\** >> python\\python-2.7.3.amd64.**msi'', >> install_options => [ { ''INSTALLDIR'' => ''C:\python27'' }, { >> ''ALLUSERS'' => ''1'' } ], >> } >> } >> >> I can see the "msiexec" process running on the client, but it seems to >> run forever without installing anything. >> >> Any help would be greatly appreciated! >> > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Josh Cooper Developer, Puppet Labs *Join us at PuppetConf 2013, August 22-23 in San Francisco - * http://bit.ly/pupconf13* **Register now and take advantage of the Early Bird discount - save 25%!* -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Klavs Klavsen
2013-May-22 09:16 UTC
[Puppet Users] Re: Need help with python msi install on windows
Try: class python::install {> package { ''python'': > ensure => installed, > source => "\\\\example.com > \\software\\python\\python-2.7.3.amd64.msi", > install_options => [ { ''INSTALLDIR'' => ''C:\python27'' }, { > ''ALLUSERS'' => ''1'' } ], > } > } > >p.s. with puppet 3 - provider should be windows - and should be so pr. default. notice that it HAS to be a valid UNC path - otherwise you could try to put a file resource - to throw the msi to c:\temp f.ex. - and use that as UNC path to package. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Kevin D
2013-May-22 21:10 UTC
[Puppet Users] Re: Need help with python msi install on windows
Matt, I tried your class in my test environment. Here are my findings: Using Microsoft''s Process Monitor<http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx>, we capture Puppet''s call to MSIEXE, the "command line" value reads: msiexec.exe /qn /no restart /i \\\\example.com\\temp\\python-2.7.3.amd64.msi INSTALLDIR=C:\python27 ALLUSERS=1 It makes sense that you are getting an error because msiexec cannot find "\\\\example.com\\temp\\python-2.7.3.amd64.msi". In order to successfully install, change the "source" line single quotes ('') to double quotes("). On next Puupet run, Process Monitor "command line" value reads: msiexec.exe /qn /no restart /i \\example.com\temp\python-2.7.3.amd64.msi INSTALLDIR=C:\python27 ALLUSERS=1 *Another note: *Using Microsoft''s orca.exe<http://msdn.microsoft.com/en-us/library/windows/desktop/aa370557%28v=vs.85%29.aspx>, the "python-2.7.3.amd64.msi" doesn''t contain properties for INSTALLDIR or ALLUSERS. These aren''t msiexec default properties either. As a result, these parameters are being ignored by msiexec. You wouldn''t notice this because the values you happen provided for these errant keys are the defaults. If you comment the " install_options" line, it will still install in C:\Python27 for all users. If you wanted to specify a custom install directory, you would need to use TARGETDIR. If you wanted to restrict user access, you would need to use WHICHUSERS. WHICHUSERS accepts "ALL" or "JUSTME" To install for the current user in specified directory "C:\python273" install_options => [ { ''TARGETDIR'' => ''C:\python273'' }, { ''WHICHUSERS'' => ''JUSTME'' } ], Here is your stanza fixed (with the install_options line optional [since you are using the defaults]): class python::install { package { ''python'': ensure => installed, provider => ''msi'', source => "\\\\example.com \\software\\python\\python-2.7.3.amd64.msi", #install_options => [ { ''TARGETDIR'' => ''C:\python27'' }, { ''WHICHUSER => ''ALL'' } ], } } I hope this helps. -Kev -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Kevin D
2013-May-22 21:13 UTC
[Puppet Users] Re: Need help with python msi install on windows
Oops... you should also change the provider as Klavs recommends: class python::install { package { ''python'': ensure => installed, provider => ''windows'', source => "\\\\example.com\\software\\ python\\python-2.7.3.amd64.msi", #install_options => [ { ''TARGETDIR'' => ''C:\python27'' }, { ''WHICHUSER => ''ALL'' } ], } } -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.