Howdy, Sorry if this a dupe, I am new to the puppet list. I am trying to override the provider for a package and simply use wget in all cases to retrieve an rpm. I have tried this: class foo::bar:quiz { package { "fancy-package": ensure => installed, source => "http://yum/yum/repo/5/i386/ verycoolrpm..noarch.rpm" } However the node is still attempting to use apt-get (which fails) The node in question does not support yum at all. (It ''s a customized appliance type linux) Any ideas how I can force the provider to wget in all cases? Note that this does work on some hosts and not on others. Thanks in advance puppet guru''s :) -Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> class foo::bar:quiz { > package { > "fancy-package": > ensure => installed, > source => "http://yum/yum/repo/5/i386/ > verycoolrpm..noarch.rpm" > }package { "fancy-package": ensure => installed, source => "http://yum/yum/repo/5/i386/ verycoolrpm..noarch.rpm", provider => rpm, } http://reductivelabs.com/trac/puppet/wiki/TypeReference#package If you don''t set the provider explicitly puppet tries to choose the best one for you.> The node in question does not support yum at all. (It ''s a customized > appliance type linux)A patch with a few line of changes could make puppet aware of your customized appliance and choose the right provider automatically. cheers 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 -~----------~----~----~----~------~----~------~--~---
> http://reductivelabs.com/trac/puppet/wiki/TypeReference#package > > If you don''t set the provider explicitly puppet tries to choose the > best > one for you. > > > The node in question does not support yum at all. (It ''s acustomized> > appliance type linux) > > A patch with a few line of changes could make puppet aware of your > customized appliance and choose the right provider automatically. > > cheers pete >Hi Pete, I found that TypeReference page after searching around and threw the rpm provider in my manifest. It''s ignoring that value for some reason. Would you happen to have a link on how one would write such a patch? Here is my package declaration in case I am doing something really dumb: class XXXX:agent::XXX { package { "XX-agent": provider => rpm, source => "http://yum/yum/XXXXX/5/i386/XXXXX-4.1.2.XX-1.noarch.rpm", ensure => installed } service { "XX-agent": ensure => running, enable => true } file { "XXX-agent": path => "/opt/XXX/hq-plugins", ensure => directory, owner => "XXX", group => "XXX", mode => 0644, purge => true, recurse => true, force => true, require => Package["XXXX"], notify => Service["XXXX"], ignore => [''.svn'', ''.git'', ''CVS'' ], source => "puppet://$servername/XXXX/plugins"; } } I have to blank out the real names for NDA reasons.. sorry. Thanks! -Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---