Hi, I am writing a puppet manifest to install a service pack on windows, what I observe is that in case the exe file is withing 50 - 70 Mb the transfer to windows happens without any issues. But the current service pack "windows6.1-KB976932-X64.exe" is around 900 Mb. My manifest is as follows file { ''c:/temp/windows6.1-KB976932-X64.exe'': ensure => ''file'', mode => ''0755'', owner => ''Administrator'', group => ''Administrators'', source => ''puppet:///modules/hotfix/windows6.1-KB976932-X64.exe'', } I am getting the error below err: /Stage[main]/Hotfix::Win2k8x64_sp1/File[c:/windows6.1-KB976932-X64.exe]/ensure: change from absent to file failed: Could not set ''file on ensure: end of file reached at /etc/puppet/modules/hotfix/manifests/win2k8x64_sp1.pp:26 Please suggest.... -- 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.
I wouldn''t even do this with a file resource. I''d write a small script to pull it down from a web server and install it then have puppet run that as an exec. I''d also have the script remove the update when it''s done since you probably don''t want 900mb on disk for no reason. On Wednesday, March 13, 2013 7:38:49 AM UTC-6, Rakesh K wrote:> > Hi, > > I am writing a puppet manifest to install a service pack on windows, what > I observe is that in case the exe file is withing 50 - 70 Mb the transfer > to windows happens without any issues. But the current service pack > "windows6.1-KB976932-X64.exe" is around 900 Mb. My manifest is as follows > > file { ''c:/temp/windows6.1-KB976932-X64.exe'': > ensure => ''file'', > mode => ''0755'', > owner => ''Administrator'', > group => ''Administrators'', > source => ''puppet:///modules/hotfix/windows6.1-KB976932-X64.exe'', > } > I am getting the error below > > err: > /Stage[main]/Hotfix::Win2k8x64_sp1/File[c:/windows6.1-KB976932-X64.exe]/ensure: > change from absent to file failed: Could not set ''file on ensure: end of > file reached at /etc/puppet/modules/hotfix/manifests/win2k8x64_sp1.pp:26 > > Please suggest.... >-- 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.
Rakesh Kathpal
2013-Mar-14 05:02 UTC
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
Tks for your reply joe.. The windows machine in this case is a VM.. so I guess I will update the template with SP1 instead of installing it on the fly. Thanks and Regards, Rakesh K. On Wed, Mar 13, 2013 at 10:16 PM, joe <lavaman@gmail.com> wrote:> I wouldn''t even do this with a file resource. I''d write a small script to > pull it down from a web server and install it then have puppet run that as > an exec. I''d also have the script remove the update when it''s done since > you probably don''t want 900mb on disk for no reason. > > > On Wednesday, March 13, 2013 7:38:49 AM UTC-6, Rakesh K wrote: >> >> Hi, >> >> I am writing a puppet manifest to install a service pack on windows, what >> I observe is that in case the exe file is withing 50 - 70 Mb the transfer >> to windows happens without any issues. But the current service pack >> "windows6.1-KB976932-X64.exe" is around 900 Mb. My manifest is as follows >> >> file { ''c:/temp/windows6.1-KB976932-**X64.exe'': >> ensure => ''file'', >> mode => ''0755'', >> owner => ''Administrator'', >> group => ''Administrators'', >> source => ''puppet:///modules/hotfix/** >> windows6.1-KB976932-X64.exe'', >> } >> I am getting the error below >> >> err: /Stage[main]/Hotfix::**Win2k8x64_sp1/File[c:/** >> windows6.1-KB976932-X64.exe]/**ensure: change from absent to file >> failed: Could not set ''file on ensure: end of file reached at >> /etc/puppet/modules/hotfix/**manifests/win2k8x64_sp1.pp:26 >> >> Please suggest.... >> > -- > 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. > > >-- 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.
Rich Siegel
2013-Mar-14 12:38 UTC
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
I do it with an exec resource using PowerShell provider and get-webfile. Works well and fast. If interested I can post the implementation details. -- 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.
Rakesh Kathpal
2013-Mar-14 13:50 UTC
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
That will be really great. Awaiting the implementation details from your side. Thanks & Regards, Rakesh K. On Thu, Mar 14, 2013 at 6:08 PM, Rich Siegel <rismoney@gmail.com> wrote:> I do it with an exec resource using PowerShell provider and get-webfile. > Works well and fast. If interested I can post the implementation details. > > -- > 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. > > >-- 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.
Rich Siegel
2013-Mar-15 23:13 UTC
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
exec { ''dlfile'': command => ''. X:\tools\Get-WebFile.ps1 ; get-webfile http://myurl.com/file.zip c:\file.zip'', provider => powershell } I am using the poweshell provider by Josh Cooper and get-webfile is on http://poshcode.com/3920 Tweak line 134 from 4096 to 1048576 to make it go a ton faster. Obviously you can deploy the script via a separate file resource. -- 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.