I am not a ruby programmer, but I was wondering how hard it would be to add a new package manager to the package resource. I use Slackware boxes on a small network at home I use for dev work. After using puppet at work I was thinking about migrating my home network to puppet to make rebuilds easier. The only missing resource i can see is that the pkgtool that slackware use is not supported. If it is not a total challenge, I was thinking that either add teh the stock tools or maybe swaret (better network fetching) as backend to package resource. Evan --~--~---------~--~----~------------~-------~--~----~ 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 Apr 26, 2008, at 12:00 PM, Evan Hisey wrote:> I am not a ruby programmer, but I was wondering how hard it would be > to add a new package manager to the package resource. I use Slackware > boxes on a small network at home I use for dev work. After using > puppet at work I was thinking about migrating my home network to > puppet to make rebuilds easier. The only missing resource i can see is > that the pkgtool that slackware use is not supported. If it is not a > total challenge, I was thinking that either add teh the stock tools or > maybe swaret (better network fetching) as backend to package resource.It''s pretty darn easy. Look in lib/puppet/provider/package/*.rb. -- A bore is a man who deprives you of solitude without providing you with company. -- Gian Vincenzo Gravina --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Evan, http://reductivelabs.com/trac/puppet/wiki/ProviderDevelopment might also be useful. Start with the package manager you are most familiar with in: lib/ puppet/provider/package/ Then use the example of the existing provider and map the equivalent pkgtool commands into the abstraction. On Apr 26, 2008, at 11:21 AM, Luke Kanies wrote:> > On Apr 26, 2008, at 12:00 PM, Evan Hisey wrote: > >> I am not a ruby programmer, but I was wondering how hard it would be >> to add a new package manager to the package resource. I use Slackware >> boxes on a small network at home I use for dev work. After using >> puppet at work I was thinking about migrating my home network to >> puppet to make rebuilds easier. The only missing resource i can see >> is >> that the pkgtool that slackware use is not supported. If it is not a >> total challenge, I was thinking that either add teh the stock tools >> or >> maybe swaret (better network fetching) as backend to package >> resource. > > > It''s pretty darn easy. Look in lib/puppet/provider/package/*.rb. > > -- > A bore is a man who deprives you of solitude without providing you > with company. -- Gian Vincenzo Gravina > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---