Hi puppet masters, while working on my site I came across a requirement that might be helpful for others as well.... With the aim of confining human errors as much as possible, I thought that it would be nice to have yum repositories disabled so that specific repositories could be enabled for certain packages. This is easily implementable via command-line, but I found that the package manager''s options were hard-coded in puppet. I therefore think it would be useful to be able to specify extra custom options to the puppet package providers. Regards, Massimo --~--~---------~--~----~------------~-------~--~----~ 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 10, 2008, at 1:18 PM, Massimo Mongardini wrote:> Hi puppet masters, > while working on my site I came across a requirement that might be > helpful for others as well.... > With the aim of confining human errors as much as possible, I > thought that it would be nice to have yum repositories disabled so > that > specific repositories could be enabled for certain packages. > This is easily implementable via command-line, but I found that the > package manager''s options were hard-coded in puppet. > > I therefore think it would be useful to be able to specify extra > custom options to the puppet package providers.I don''t think this is ever really going to happen. At the most, packages might someday get boolean options (e.g., "force"), but I don''t think we''re every going to be able to have this level of interaction. It also pretty handily breaks any kind of abstraction. Just use the yumrepo type to manage your repositories, IMO. -- Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels come. --Matt Groening --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Apr 10, 2008 at 1:18 PM, Massimo Mongardini <massimo.mongardini@gmail.com> wrote:> > Hi puppet masters, > while working on my site I came across a requirement that might be > helpful for others as well.... > With the aim of confining human errors as much as possible, I > thought that it would be nice to have yum repositories disabled so that > specific repositories could be enabled for certain packages. > This is easily implementable via command-line, but I found that the > package manager''s options were hard-coded in puppet. > > I therefore think it would be useful to be able to specify extra > custom options to the puppet package providers. > > Regards, > Massimo >I find either using yum priorites or a custom yum repo works better for that than using the command line to enable or disable things. most of the time. For those rare expecptions I believe the exec type works well. 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 -~----------~----~----~----~------~----~------~--~---
Hi Massimo, what I''m doing is "pinning" packages somewhat. In fact we''re using the priorities plugin and pin a package to one or more repositories by adding it as an exclude to all other repositories. I''ve written a simple script that does the job. Massimo Mongardini schrieb:> Hi puppet masters, > while working on my site I came across a requirement that might be > helpful for others as well.... > With the aim of confining human errors as much as possible, I > thought that it would be nice to have yum repositories disabled so that > specific repositories could be enabled for certain packages. > This is easily implementable via command-line, but I found that the > package manager''s options were hard-coded in puppet. > > I therefore think it would be useful to be able to specify extra > custom options to the puppet package providers. > > Regards, > Massimo > > > > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~--- >-- Solvention Egermannstr. 6-8 53359 Rheinbach Tel: +49 2226 158179-0 Fax: +49 2226 158179-9 http://www.solvention.de mailto:info@solvention.de
Andreas Rogge wrote:> Hi Massimo, > > what I''m doing is "pinning" packages somewhat. In fact we''re using the > priorities plugin and pin a package to one or more repositories by > adding it as an exclude to all other repositories. > I''ve written a simple script that does the job. > > Massimo Mongardini schrieb: >> Hi puppet masters, >> while working on my site I came across a requirement that might >> be helpful for others as well.... >> With the aim of confining human errors as much as possible, I >> thought that it would be nice to have yum repositories disabled so >> that specific repositories could be enabled for certain packages. >> This is easily implementable via command-line, but I found that >> the package manager''s options were hard-coded in puppet. >> >> I therefore think it would be useful to be able to specify extra >> custom options to the puppet package providers. >> >> Regards, >> Massimo >> >> >> >> >> >Thanks for your replies and feedback, much appreciated. M. -- Massimo Mongardini ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ echo ''Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!'' | perl -pe ''s/(.)/chr(ord($1)-1)/ge'' ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ http://massimo.mongardini.it http://www.getthefacts.it http://www.mongardini.it/pizza-howto ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---