hi there i''d like to manage my opensuse 11.1 systems with puppet and zypper. the requirements are the manage the repos and install packages. the only thing i found is the zypper.rb on http://projects.reductivelabs.com/attachments/393 which i copied to /usr/lib/ruby/1.8/puppet/provider/package but i don''t understand how to use this zypper provider. what are the names of the valid names of resource type and the valid parameters with there values! thanks. marc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> i''d like to manage my opensuse 11.1 systems with puppet and zypper. > the requirements are the manage the repos and install packages.I''ve just begun work on a new custom type that is aimed at managing zypper repos. Unfortunately I''m not very far along, but I''ll certainly let you know when I have something usable.> the only thing i found is the zypper.rb on http://projects.reductivelabs.com/attachments/393 > which i copied to /usr/lib/ruby/1.8/puppet/provider/packageThe zypper.rb that you are referring to is a package provider only, and doesn''t allow the management of repositories. I''m using the perl script here: http://pastie.org/pastes/613000 to manage zypper repos until my custom type is working.> but i don''t understand how to use this zypper provider. what are the > names of the valid names of resource type and the valid parameters > with there values!It''s just a package provider, so you can copy zypper.rb to any module directory and have puppet''s pluginsync get it out to your clients. For instance, if you have a module called "zypper" located in /etc/puppet/modules/zypper, you would create the directories necessary and copy zypper.rb to /etc/puppet/modules/zypper/plugins/puppet/provider/package/zypper.rb. Now, just make sure pluginsync = true is set in your client''s puppet.conf, and puppet should be able to install packages using zypper. Note: I did the following in my site.pp to make sure zypper is used (and not rug) on sles boxes: Package { provider => $suse_version ? { ''sles9'' => rug, ''sles10'' => zypper, '''' => rug } } Note also that this required the suse.rb facter plugin from here: http://reductivelabs.com/trac/puppet/wiki/Recipes/SuSE_Version. To get the custom facter plugins out to clients, make sure that in addition to the steps above you copy suse.rb to plugins/facter/ in your module path. Using the previous example, that would be /etc/puppet/modules/zypper/plugins/facter/. Also, be sure that factpath is set to $vardir/lib/facter on your clients. Hope this helps, Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
>> the only thing i found is the zypper.rb on http://projects.reductivelabs.com/attachments/393 >> which i copied to /usr/lib/ruby/1.8/puppet/provider/packageOne other thing. I used the zypper.rb from here: http://groups.google.com/group/puppet-dev/browse_thread/thread/986b51b5b1691a5?pli=1 Thanks, Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
While not fancy, we simply manage SLES 11 / SLED 11 zypper repos by having standard Puppet file resources for the .repo files off in /etc/zypp/repos.d. We used the zypper.rb package provider linked in a previous response. Those two together have solved our needs with zypper. On Thu, Sep 10, 2009 at 5:45 PM, Justin Kinney <jakinne@gmail.com> wrote:> > >> the only thing i found is the zypper.rb on > http://projects.reductivelabs.com/attachments/393 > >> which i copied to /usr/lib/ruby/1.8/puppet/provider/package > > One other thing. I used the zypper.rb from here: > > http://groups.google.com/group/puppet-dev/browse_thread/thread/986b51b5b1691a5?pli=1 > > Thanks, > Justin > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---