Jeff Leggett
2008-Aug-25 15:26 UTC
[Puppet Users] package name AND VERSION needed for passing to yum?
this snippet: package {ovzkernel: source => $hardwaremodel ? { "x86_64" => "ovzkernel-2.6.18-53.1.19.el5.028stab053.14.x86_64", default => "ovzkernel-2.6.18-53.1.19.el5.028stab053.14.i686" }, ensure => installed, provider => yum, require => [File["/etc/sysconfig/selinux"],File["/etc/ sysctl.conf"],File["/etc/modprobe.conf"]], } package { ovzkernel-devel: source => $hardwaremodel ? { "x86_64" => "ovzkernel- devel-2.6.18-53.1.19.el5.028stab053.14.x86_64", default => "ovzkernel- devel-2.6.18-53.1.19.el5.028stab053.14.i686" }, ensure => installed, provider => yum, require => Package[ovzkernel] } Wants to just run Mon Aug 25 08:22:35 -0700 2008 Puppet::Type::Package::ProviderYum (debug): Executing ''/usr/bin/yum -d 0 -e 0 -y install ovzkernel'' instead of the proper version. how do I pass the source parameter to the actual yum call ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Aug-25 16:16 UTC
[Puppet Users] Re: package name AND VERSION needed for passing to yum?
Hi> instead of the proper version. how do I pass the source parameter to > the actual yum call ?http://reductivelabs.com/trac/puppet/wiki/TypeReference#package read the ensure part. greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mark Drayton
2008-Aug-25 17:00 UTC
[Puppet Users] Re: package name AND VERSION needed for passing to yum?
Hi On Aug 25, 5:16 pm, Peter Meier <peter.me...@immerda.ch> wrote:> > instead of the proper version. how do I pass the source parameter to > > the actual yum call ? > > http://reductivelabs.com/trac/puppet/wiki/TypeReference#package > > read the ensure part.To expand: package { ovzkernel: ensure => $hardwaremodel ? { "x86_64" => "2.6.18-53.1.19.el5.028stab053.14.x86_64", default => "2.6.18-53.1.19.el5.028stab053.14.i686" } } Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---