I''m running in to an issue where I want to install a gem named "mysql" and an rpm named "mysql". Puppet complains about this when I''ve got bot directives in there, saying Package[''mysql''] is already defined. I''ve tried using the alias command to alias them as mysql-rpm, and mysql-gem. Puppet still complained about Package[''mysql''] being defined twice. Also tried this: package { "mysql-gem": name => "mysql", provider => gem ... package { "mysql-rpm": name => "mysql", provider => yum ... This also complained. Does anyone suggestions on how to overcome this? Can I use a suffix of somekind specific to the package attributes (like arch or version) to help puppet distinguish between the two.. or do I need to write my own "gem" type definition? Thanks! Tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey guys, Recently I had to update the nagios-plugins package on our systems to deal with the upcoming leap second. Of course this was a piece of cake with puppet! It led to some ideas popping into my head... It would be cool if I could find out which systems still had the old version installed. This could be done if the packages installed on each system were tracked somewhere. For each system, create a list of packages installed and their versions. Store it in a centralized database. Each day (or other interval), query each system again and compare the currently installed packages with the list stored in the DB. Record the differences in the database, a changelog if you will. Since all records would be in a SQL DB, it would be trivial to create a web app to browse, search and create reports. E-mail notifications could be sent when changes are noticed. Before I go off and start writing this myself, has it already been done? I know there are Windows apps and surely some commercial Linux apps that do it, but I''m only interested in a free version. Ideally it would work across RHEL, Debian and Gentoo, so I expect I''ll have to do it myself. Anybody know of such a system, or are willing to share your home-brewed solution? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well, apparently nobody knows an easy solution.<div><br></div><div>I ended up create my own ruby-enterprise-mysql rpm package, and all my troubles went away. (though this is still an issue I''d like to know the answer to).</div><div><br></div><div>Tim<br><br><div class="gmail_quote">On Tue, Dec 30, 2008 at 8:36 AM, Tim Harper <span dir="ltr"><timcharper@gmail.com></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>I''m running in to an issue where I want to install a gem named "mysql" and an rpm named "mysql". Puppet complains about this when I''ve got bot directives in there, saying Package[''mysql''] is already defined.</p> <p>I''ve tried using the alias command to alias them as mysql-rpm, and mysql-gem. Puppet still complained about Package[''mysql''] being defined twice. Also tried this:</p> <p>package { "mysql-gem": name => "mysql", provider => gem ...<br> package { "mysql-rpm": name => "mysql", provider => yum ...</p> <p>This also complained. Does anyone suggestions on how to overcome this? Can I use a suffix of somekind specific to the package attributes (like arch or version) to help puppet distinguish between the two.. or do I need to write my own "gem" type definition?</p> <p>Thanks!</p> <p>Tim</p> </blockquote></div><br></div> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff Falgout
2009-Jan-05 18:48 UTC
[Puppet Users] Re: Offtopic: package inventory tracking
Hi John, On Wed, Dec 31, 2008 at 8:56 AM, John Philips <johnphilips42@yahoo.com> wrote:> > Anybody know of such a system, or are willing to share your home-brewed solution? >Check out MachDB ( http://www.machdb.org/ ) It''s still in alpha development but I''ve talked with Nathan and it still is an active project. I''ve even promised some code . . . Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
John Philips <johnphilips42@yahoo.com> writes:> Anybody know of such a system, or are willing to share your > home-brewed solution?Maybe OCS Inventory is worth looking at: http://www.ocsinventory-ng.org/ Last I looked at it (few years ago) it focused on hardware info but did collect package versions. It also had a web frontend for generating reports. -Brett. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello Tim, I ran into the same issue and Joshua suggested using an exec. It works great. I may also change all my gem installs to use this since the package provider also tries to install again if there''s multiple versions. Like with capistrano (2.5.3, 2.1.0). <- can''t tell 2.1.0 is installed. http://groups.google.com/group/puppet-users/browse_thread/thread/6d4429c33bbdbb1d/cdc8c00b50b51eb9#cdc8c00b50b51eb9 I also found an old bug for this same issue. And another one about not being able to provide arguments to gem install. http://projects.reductivelabs.com/issues/show/1398 http://projects.reductivelabs.com/issues/show/1597 Gary On Jan 1, 1:13 am, "Tim Harper" <timchar...@gmail.com> wrote:> Well, apparently nobody knows an easy solution.<div><br></div><div>I > ended up create my own ruby-enterprise-mysql rpm package, and all my > troubles went away. (though this is still an issue I''d like to know > the answer to).</div><div><br></div><div>Tim<br><br><div > class="gmail_quote">On Tue, Dec 30, 2008 at 8:36 AM, Tim Harper <spandir="ltr"><timchar...@gmail.com></span> wrote:<br><blockquote > > class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc > solid;padding-left:1ex;"><p>I''m running in to an issue where I want to > install agemnamed "mysql" and an rpm named "mysql". Puppet > complains about this when I''ve got bot directives in there, saying > Package[''mysql''] is already defined.</p> > > <p>I''ve tried using the alias command to alias them as mysql-rpm, and > mysql-gem. Puppet still complained about Package[''mysql''] being > defined twice. Also tried this:</p> > <p>package { "mysql-gem": name => "mysql", provider =>gem...<br> > package { "mysql-rpm": name => "mysql", provider => yum ...</p> > <p>This also complained. Does anyone suggestions on how to overcome > this? Can I use a suffix of somekind specific to the package > attributes (like arch or version) to help puppet distinguish between > the two.. or do I need to write my own "gem" type definition?</p> > > <p>Thanks!</p> > <p>Tim</p> > </blockquote></div><br></div>--~--~---------~--~----~------------~-------~--~----~ 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 Gary, Thanks for the response. That did it :) Tim On Thu, Jan 8, 2009 at 3:08 AM, gary <garyyuen@gmail.com> wrote:> > Hello Tim, > > I ran into the same issue and Joshua suggested using an exec. It works > great. I may also change all my gem installs to use this since the > package provider also tries to install again if there''s multiple > versions. Like with > > capistrano (2.5.3, 2.1.0). <- can''t tell 2.1.0 is installed. > > > http://groups.google.com/group/puppet-users/browse_thread/thread/6d4429c33bbdbb1d/cdc8c00b50b51eb9#cdc8c00b50b51eb9 > > I also found an old bug for this same issue. And another one about not > being able to provide arguments to gem install. > > http://projects.reductivelabs.com/issues/show/1398 > http://projects.reductivelabs.com/issues/show/1597 > > Gary > > On Jan 1, 1:13 am, "Tim Harper" <timchar...@gmail.com> wrote: > > Well, apparently nobody knows an easy solution.<div><br></div><div>I > > ended up create my own ruby-enterprise-mysql rpm package, and all my > > troubles went away. (though this is still an issue I''d like to know > > the answer to).</div><div><br></div><div>Tim<br><br><div > > class="gmail_quote">On Tue, Dec 30, 2008 at 8:36 AM, Tim Harper > <spandir="ltr"><timchar...@gmail.com <lt%3Btimchar...@gmail.com>></span> > wrote:<br><blockquote > > > > class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc > > solid;padding-left:1ex;"><p>I''m running in to an issue where I want to > > install agemnamed "mysql" and an rpm named "mysql". Puppet > > complains about this when I''ve got bot directives in there, saying > > Package[''mysql''] is already defined.</p> > > > > <p>I''ve tried using the alias command to alias them as mysql-rpm, and > > mysql-gem. Puppet still complained about Package[''mysql''] being > > defined twice. Also tried this:</p> > > <p>package { "mysql-gem": name => "mysql", provider =>gem...<br> > > package { "mysql-rpm": name => "mysql", provider => yum ...</p> > > <p>This also complained. Does anyone suggestions on how to overcome > > this? Can I use a suffix of somekind specific to the package > > attributes (like arch or version) to help puppet distinguish between > > the two.. or do I need to write my own "gem" type definition?</p> > > > > <p>Thanks!</p> > > <p>Tim</p> > > </blockquote></div><br></div> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---