I''m writing a CPAN package provider for puppet. Since the CPAN CLI is kinda sucky for this purpose I''ve written a wrapper around the CPAN.pm module in Perl. I''d like to have this file installed on all systems, what would be the proper way to do this? The alternatives I found is(more are welcome): * Provisioning it through puppet?(prefered solution, no external deps) * How do I do this properly for a package provider? * Packaging it for systems(RHEL, Fedora, Debian, etc)... * Just telling people to deploy it through whatever means. -- Jonathan Beckman -- 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 Fri, Feb 18, 2011 at 05:34:28AM -0800, Jonathan Beckman wrote:> Since the CPAN CLI is kinda sucky for this purpose I''ve written a > wrapper around the CPAN.pm module in Perl.It might be worth having a look at cpanm. It''s a lot smaller and probably easier to drive. http://search.cpan.org/~miyagawa/App-cpanminus-1.2001/bin/cpanm Dean -- Dean Wilson http://www.unixdaemon.net @unixdaemon http://www.puppetcookbook.com @puppetcookbook -- 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 Fri, Feb 18, 2011 at 3:27 PM, Dean Wilson <dwilson@unixdaemon.net> wrote:> It might be worth having a look at cpanm. It''s a lot smaller and probably > easier to drive. > > http://search.cpan.org/~miyagawa/App-cpanminus-1.2001/bin/cpanmYeah, I''m currently using a ugly "define" hack with cpanm. Problem is that there the indexing problem and a lot of missing features which a l ot of people use. I wrote a wrapper around CPAN.pm which does most of the things I want. I''m doing this for two reasons, 1) I need it(but cpanm would suffice but it''s not clean) 2) I''d like to learn more about puppet internals, also I''ll probably get straight to writing a easy_install module after this. -- 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 18/02/11 13:34, Jonathan Beckman wrote:> I''m writing a CPAN package provider for puppet. > > Since the CPAN CLI is kinda sucky for this purpose I''ve written a > wrapper around the CPAN.pm module in Perl. I''d like to have this file > installed on all systems, what would be the proper way to do this?I''m interested in this too. We have a large Perl-based infrastructure and we rely on a lot of modules from CPAN. Currently we don''t have a proper and uniform way of ensuring that all systems receive the right CPAN modules, other than manually installing them.> > The alternatives I found is(more are welcome): > * Provisioning it through puppet?(prefered solution, no external deps) > * How do I do this properly for a package provider?We haven''t tried any puppet-based solution yet...> > * Packaging it for systems(RHEL, Fedora, Debian, etc)...We have trialled building CPAN modules as RPM packages for CentOS using the "cpanspec" tool. This is being used on our dev machines and some unimportant production machines. Unfortunately it often requires a significant amount of manual intervention to make the RPM build cleanly, and then time and effort spent updating the RPM each time there is a new version published on CPAN. Because of the manual intervention, scripting isn''t possible and with time, we need more and more CPAN modules so this isn''t a particularly scalable solution. It''s a shame CPAN doesn''t also offer all of its content as an RPM repo. So, I''m interested in any effort to enable puppet to interact with CPAN as easily as it can with yum, using a Package{} type for example. Or any other way of somehow getting stuff from CPAN onto servers in a reliable and easy way. I''m a newbie at Ruby but happy to test and provide feedback on anyone else''s Puppet modules. We are currently running Puppet on our fleet of dev machines, which we hope will be ready for production by the new academic year in September 2011. So, there is still plenty of time to test alternative methods of getting Perl modules onto systems.> > Jonathan Beckman >From one Jonathan to another... Cheers, Jonathan ---------------------------- Jonathan Gazeley Systems Specialist ResNet | Wireless & VPN Team IT Services University of Bristol ---------------------------- -- 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.