The issue seems to be on line 24. MY guess is the variables are not getting interpolated correctly. Please help I new to Puppet. Here is the script: http://pastie.org/236626 Here is the errors i get on the client: err: Could not create perl-Net-Server-0.97-1.el5.rf: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/classes/munin.pp: 24 err: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/ classes/munin.pp:24 err: Could not create perl-Crypt-DES-2.05-3.2.el5.rf: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/classes/munin.pp: 24 err: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/ classes/munin.pp:24 err: Could not create munin-node-1.2.5-1.el5.rf: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/classes/munin.pp: 24 err: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/ classes/munin.pp:24 err: Could not create perl-Net-SNMP-5.2.0-1.2.el5.rf: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/classes/munin.pp: 24 err: Parameter source failed: Package sources must be fully qualified files or URLs, depending on the platform. at /etc/puppet/manifests/ classes/munin.pp:24 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 18, 11:05 am, pavel <ppra...@gmail.com> wrote:> The issue seems to be on line 24. MY guess is the variables are not > getting interpolated correctly. Please help I new to Puppet. > > Here is the script:http://pastie.org/236626 > > Here is the errors i get on the client: > err: Could not create perl-Net-Server-0.97-1.el5.rf: Parameter source > failed: Package sources must be fully qualified files or URLs, > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > 24 > err: Parameter source failed: Package sources must be fully qualified > files or URLs, depending on the platform. at /etc/puppet/manifests/ > classes/munin.pp:24 > err: Could not create perl-Crypt-DES-2.05-3.2.el5.rf: Parameter source > failed: Package sources must be fully qualified files or URLs, > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > 24 > err: Parameter source failed: Package sources must be fully qualified > files or URLs, depending on the platform. at /etc/puppet/manifests/ > classes/munin.pp:24 > err: Could not create munin-node-1.2.5-1.el5.rf: Parameter source > failed: Package sources must be fully qualified files or URLs, > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > 24 > err: Parameter source failed: Package sources must be fully qualified > files or URLs, depending on the platform. at /etc/puppet/manifests/ > classes/munin.pp:24 > err: Could not create perl-Net-SNMP-5.2.0-1.2.el5.rf: Parameter source > failed: Package sources must be fully qualified files or URLs, > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > 24 > err: Parameter source failed: Package sources must be fully qualified > files or URLs, depending on the platform. at /etc/puppet/manifests/ > classes/munin.pp:24I had a similar problem a while back - I forget if my error messages were the same as yours, but I solved the problem by using require or before statements... basically you need to make sure the rpm is present before you try to install it. -Chad --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
I am pretty sure its something else. thanks On Jul 18, 11:24 am, Chad <cfel...@gmail.com> wrote:> On Jul 18, 11:05 am, pavel <ppra...@gmail.com> wrote: > > > > > The issue seems to be on line 24. MY guess is the variables are not > > getting interpolated correctly. Please help I new to Puppet. > > > Here is the script:http://pastie.org/236626 > > > Here is the errors i get on the client: > > err: Could not create perl-Net-Server-0.97-1.el5.rf: Parameter source > > failed: Package sources must be fully qualified files or URLs, > > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > > 24 > > err: Parameter source failed: Package sources must be fully qualified > > files or URLs, depending on the platform. at /etc/puppet/manifests/ > > classes/munin.pp:24 > > err: Could not create perl-Crypt-DES-2.05-3.2.el5.rf: Parameter source > > failed: Package sources must be fully qualified files or URLs, > > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > > 24 > > err: Parameter source failed: Package sources must be fully qualified > > files or URLs, depending on the platform. at /etc/puppet/manifests/ > > classes/munin.pp:24 > > err: Could not create munin-node-1.2.5-1.el5.rf: Parameter source > > failed: Package sources must be fully qualified files or URLs, > > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > > 24 > > err: Parameter source failed: Package sources must be fully qualified > > files or URLs, depending on the platform. at /etc/puppet/manifests/ > > classes/munin.pp:24 > > err: Could not create perl-Net-SNMP-5.2.0-1.2.el5.rf: Parameter source > > failed: Package sources must be fully qualified files or URLs, > > depending on the platform. at /etc/puppet/manifests/classes/munin.pp: > > 24 > > err: Parameter source failed: Package sources must be fully qualified > > files or URLs, depending on the platform. at /etc/puppet/manifests/ > > classes/munin.pp:24 > > I had a similar problem a while back - I forget if my error messages > were the same as yours, but I solved the problem by using require or > before statements... basically you need to make sure the rpm is > present before you try to install it. > > -Chad--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
scott smith
2008-Jul-18 20:11 UTC
[Puppet Users] Re: need help with package install script
pavel wrote:> The issue seems to be on line 24. MY guess is the variables are not > getting interpolated correctly. Please help I new to Puppet. >Set up a yum repo. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
notice: Starting configuration run err: //172576-websealqa1.autodesk.com/munin/installrpm[perl-Net- Server-0.97-1.el5.rf]/Package[perl-Net-Server-0.97-1.el5.rf]/ensure: change from absent to present failed: RPMs must specify a package source at /etc/puppet/manifests/classes/munin.pp:26 err: //172576-websealqa1.autodesk.com/munin/installrpm[munin- node-1.2.5-1.el5.rf]/Package[munin-node-1.2.5-1.el5.rf]/ensure: change from absent to present failed: RPMs must specify a package source at / etc/puppet/manifests/classes/munin.pp:26 err: //172576-websealqa1.autodesk.com/munin/installrpm[perl-Net- SNMP-5.2.0-1.2.el5.rf]/Package[perl-Net-SNMP-5.2.0-1.2.el5.rf]/ensure: change from absent to present failed: RPMs must specify a package source at /etc/puppet/manifests/classes/munin.pp:26 err: //172576-websealqa1.autodesk.com/munin/installrpm[perl-Crypt- DES-2.05-3.2.el5.rf]/Package[perl-Crypt-DES-2.05-3.2.el5.rf]/ensure: change from absent to present failed: RPMs must specify a package source at /etc/puppet/manifests/classes/munin.pp:26 info: Sent transaction report in 0.07 seconds notice: Finished configuration run in 0.85 seconds On Jul 18, 1:11 pm, scott smith <sc...@lackluster.net> wrote:> pavel wrote: > > The issue seems to be on line 24. MY guess is the variables are not > > getting interpolated correctly. Please help I new to Puppet. > > Set up a yum repo. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
I would like to solve the bug in the code so i can learn. thanks --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
I think the problem is in this line. Its not being translated to the real path: source => ["/tmp/$name.$architecture.rpm"], Here is the script: http://pastie.org/236626 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
This one works: http://pastie.org/236757 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Mike Renfro
2008-Jul-18 21:42 UTC
[Puppet Users] Re: need help with package install script
On 7/18/2008 3:45 PM, pavel wrote:> This one works: > > http://pastie.org/236757Assuming you don''t set up a traditional repository (and there are significant advantages in doing that), you may still want to set some requires in there, though. I don''t think Puppet will necessarily execute your copyrpm definition before your installrpm definition. It may have been that the installrpm failed until the copyrpm successfully copied all the rpm files. I had a similar problem with deploying packages used with GNU stow, and my solution [1] was similar to the one you have, but with dependencies to ensure that files were copied before they were ever installed into their final locations. I also copy the files out via rsync instead of using puppet''s file service for extra performance with older versions of puppet. [1] http://blogs.cae.tntech.edu/mwr/2008/02/01/the-autostow-is-dead-long-live-stowedpackage/ -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---