hi everyone, i''m trying to roll out an .exe file for the puppet package provider "windows". my manifest looks like this: $package_source = "http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe" $package_name = "Check_MK Agent 1.2.3i1" package { "$package_name": ensure => installed, provider => windows, source => "$package_source", install_options => [''/S'', ''/D=C:\check_mk''] } the agent says: Error: The source does not exist: ''http://puppet.local.domain/base*check* mk/windows/check-mk-agent-1.2.3i1.exe'' When i open this link in the browser of the agent, the download of the file starts. (So the path is correct). The same procedure works with ".msi" files though. Are .exe files not supported for this kind of method? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Martin Alfke
2013-Aug-05 07:30 UTC
Re: [Puppet Users] serving .exe file via http (provider => windows)
Hi, I assume that you have the exe file within your module in the files folder. Adopt the source attribute to the following: source => ''puppet:///<modulename>/<filename> Put the exe in your module: <modulepath>/<modulename>/files/<exe filename> http://docs.puppetlabs.com/references/latest/type.html#file hth, Martin On Aug 5, 2013, at 8:01 AM, cko <dertune@gmail.com> wrote:> hi everyone, i''m trying to roll out an .exe file for the puppet package provider "windows". > > my manifest looks like this: > > $package_source = "http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe" > $package_name = "Check_MK Agent 1.2.3i1" > > package { "$package_name": > ensure => installed, > provider => windows, > source => "$package_source", > install_options => [''/S'', ''/D=C:\check_mk''] > } > > the agent says: > > Error: The source does not exist: ''http://puppet.local.domain/basecheckmk/windows/check-mk-agent-1.2.3i1.exe'' > > When i open this link in the browser of the agent, the download of the file starts. (So the path is correct). > > The same procedure works with ".msi" files though. Are .exe files not supported for this kind of method? > > > -- > 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. > 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. For more options, visit https://groups.google.com/groups/opt_out.
cko
2013-Aug-05 08:42 UTC
Re: [Puppet Users] serving .exe file via http (provider => windows)
Hi, from the official documentation: Additional Notes on Windows Packages> > - The source parameter is required, and must refer to a local .msi > file, a file from a mapped drive, or a UNC path. You can distribute > packages as file resources. Puppet URLs are not currently supported > for the package type’s source attribute. > >This is why i want to serve the file via httpd (like i said, it worked with msi files). On Monday, August 5, 2013 9:30:30 AM UTC+2, Martin Alfke wrote:> > Hi, > > I assume that you have the exe file within your module in the files > folder. > Adopt the source attribute to the following: > > source => ''puppet:///<modulename>/<filename> > > Put the exe in your module: > <modulepath>/<modulename>/files/<exe filename> > > http://docs.puppetlabs.com/references/latest/type.html#file > > hth, > > Martin > > On Aug 5, 2013, at 8:01 AM, cko <der...@gmail.com <javascript:>> wrote: > > > hi everyone, i''m trying to roll out an .exe file for the puppet package > provider "windows". > > > > my manifest looks like this: > > > > $package_source = " > http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe" > > > $package_name = "Check_MK Agent 1.2.3i1" > > > > package { "$package_name": > > ensure => installed, > > provider => windows, > > source => "$package_source", > > install_options => [''/S'', ''/D=C:\check_mk''] > > } > > > > the agent says: > > > > Error: The source does not exist: '' > http://puppet.local.domain/basecheckmk/windows/check-mk-agent-1.2.3i1.exe'' > > > > > When i open this link in the browser of the agent, the download of the > file starts. (So the path is correct). > > > > The same procedure works with ".msi" files though. Are .exe files not > supported for this kind of method? > > > > > > -- > > 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...@googlegroups.com <javascript:>. > > To post to this group, send email to puppet...@googlegroups.com<javascript:>. > > > Visit this group at http://groups.google.com/group/puppet-users. > > 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. For more options, visit https://groups.google.com/groups/opt_out.
badgerious
2013-Aug-06 00:27 UTC
Re: [Puppet Users] serving .exe file via http (provider => windows)
Installing from a URL is a feature of msiexec rather than the puppet provider. I think you''re stuck using a file resource to download the .exe and then installing from a local path (or serving directly from a UNC path). It would be neat if the windows package provider could eat puppet:/// sources though. Eric On Monday, August 5, 2013 3:42:28 AM UTC-5, cko wrote:> > Hi, > > from the official documentation: > > Additional Notes on Windows Packages >> >> - The source parameter is required, and must refer to a local .msi >> file, a file from a mapped drive, or a UNC path. You can distribute >> packages as file resources. Puppet URLs are not currently supported >> for the package type’s source attribute. >> >> > This is why i want to serve the file via httpd (like i said, it worked > with msi files). > > >-- 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. For more options, visit https://groups.google.com/groups/opt_out.