HARRIS Jimmy \(AXA-Tech-AU\)
2007-May-18 06:06 UTC
Requiring Yum be installed before classes use it as a provider
I''m in the process of creating Puppet classes to install Munin via Yum on my RHEL4 hosts. Before Yum can be used as a provider, it obviously needs to be installed. I''ve tried requring the Yum package in the Munin classes but I still get an error about "Provider ''yum'' is not functional on this platform". Is there an easy way to require the yum class to be processed before any classes that use yum as their provider? I''m sure that I''m missing something simple here but I can''t quite figure out what. Cheers, James ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA-Tech Australia. Thank you. **********************************************************************************
Benjamin C. Kite
2007-May-18 13:17 UTC
Re: Requiring Yum be installed before classes use it as a provider
On 18 May , 2007, at 02:06, HARRIS Jimmy (AXA-Tech-AU) wrote:> I''m in the process of creating Puppet classes to install Munin via Yum > on my RHEL4 hosts. Before Yum can be used as a provider, it obviously > needs to be installed. > > I''ve tried requring the Yum package in the Munin classes but I > still get > an error about "Provider ''yum'' is not functional on this platform".Since you obviously can''t use the yum package provider, what provider are you using to install yum? Did you specify an alternative package provider explicitly, such as provider => rpm?
Luke Kanies
2007-May-18 14:13 UTC
Re: Requiring Yum be installed before classes use it as a provider
On May 18, 2007, at 1:06 AM, HARRIS Jimmy ((AXA-Tech-AU)) wrote:> I''m in the process of creating Puppet classes to install Munin via Yum > on my RHEL4 hosts. Before Yum can be used as a provider, it obviously > needs to be installed. > > I''ve tried requring the Yum package in the Munin classes but I > still get > an error about "Provider ''yum'' is not functional on this platform". > > Is there an easy way to require the yum class to be processed > before any > classes that use yum as their provider? I''m sure that I''m missing > something simple here but I can''t quite figure out what.This is opened as bug #571. I don''t yet know how I''m going to solve it, though. -- A motion to adjourn is always in order. --Robert Heinlein --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
HARRIS Jimmy \(AXA-Tech-AU\)
2007-May-21 02:34 UTC
Re: Requiring Yum be installed before classes use itas a provider
>> I''m in the process of creating Puppet classes to install Munin via Yum >> on my RHEL4 hosts. Before Yum can be used as a provider, it obviously >> needs to be installed. >> >> I''ve tried requring the Yum package in the Munin classes but I >> still get >> an error about "Provider ''yum'' is not functional on this platform".>Since you obviously can''t use the yum package provider, what provider >are you using to install yum?>Did you specify an alternative package provider explicitly, such as > provider => rpm?There''s no problem installing Yum itself (and yes, I used RPM to install the required packages), it''s just that Puppet fails when other classes include the Yum provider. The only way I can get it to work it to run Puppet first to install Yum, and then add the classes that use the Yum provider and run Puppet again. James ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA-Tech Australia. Thank you. ********************************************************************************** _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2007-May-21 17:52 UTC
Re: Requiring Yum be installed before classes use itas a provider
On May 20, 2007, at 10:34 PM, HARRIS Jimmy ((AXA-Tech-AU)) wrote:> > There''s no problem installing Yum itself (and yes, I used RPM to > install the required packages), it''s just that Puppet fails when > other classes include the Yum provider. > > The only way I can get it to work it to run Puppet first to install > Yum, and then add the classes that use the Yum provider and run > Puppet again.I''ve been thinking about this problem, and the only way I see to fix it is to change the point at which provider functionality is tested. It''s currently tested at object creation time, which means that you can''t use the configuration to make providers functional, as you''ve found. This wouldn''t fix all of the problems people are likely to run into -- Puppet''s mechanism for determining default providers will only ever choose from among those that are functional at instantiation time -- but it should get us pretty close. I should have that problem fixed this week. I guess I''ve gotten enough work done recently that I should look at doing a release soon. -- Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. -- Abigail Adams --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com