I need to do this in puppet: gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/ mysql_config Not sure how to express any of the arguments to gem install in my puppet Package stanza. can somebody explain?, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You could just do exec { "gem-install-mysql": command => "gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config", } Then you can rely on require => Exec["gem-install-mysql"] elsewhere. On Mon, Sep 22, 2008 at 2:15 PM, Ed Greenberg <greenberg.ed@gmail.com> wrote:> > I need to do this in puppet: > > gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/ > mysql_config > > Not sure how to express any of the arguments to gem install in my > puppet Package stanza. > > can somebody explain?, > > > >--~--~---------~--~----~------------~-------~--~----~ 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 also recommend using a .gemrc file (managed by puppet!) to add "-- no-rdoc --no-ri" since it''s usually what everyone wants as the default, especially in production. -Blake On Sep 22, 2008, at 1:46 PM, Ashley Penney wrote:> > You could just do exec { "gem-install-mysql": command => "gem install > mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config", > } > > Then you can rely on require => Exec["gem-install-mysql"] elsewhere. > > On Mon, Sep 22, 2008 at 2:15 PM, Ed Greenberg > <greenberg.ed@gmail.com> wrote: >> >> I need to do this in puppet: >> >> gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/ >> mysql_config >> >> Not sure how to express any of the arguments to gem install in my >> puppet Package stanza. >> >> can somebody explain?, >> >>> >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 Mon, Sep 22, 2008 at 8:52 PM, Blake Barnett <shadoi@gmail.com> wrote:> > I''d also recommend using a .gemrc file (managed by puppet!) to add "-- > no-rdoc --no-ri" since it''s usually what everyone wants as the > default, especially in production. > > -Blake > > On Sep 22, 2008, at 1:46 PM, Ashley Penney wrote: > >> >> You could just do exec { "gem-install-mysql": command => "gem install >> mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config", >> } >> >> Then you can rely on require => Exec["gem-install-mysql"] elsewhere. >> >> On Mon, Sep 22, 2008 at 2:15 PM, Ed Greenberg >> <greenberg.ed@gmail.com> wrote: >>> >>> I need to do this in puppet: >>> >>> gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/ >>> mysql_config >>> >>> Not sure how to express any of the arguments to gem install in my >>> puppet Package stanza. >>> >>> can somebody explain?, >>> >>>> >>> >> >> > > > > > >more ~/.gemrc update: -B 10 install: -B 10 gem: --no-ri --no-rdoc -- - Brian Gupta http://opensolaris.org/os/project/nycosug/ http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the answers, but they raise more questions, if I may. 1. For puppet to make use of a .gemrc, should it be in root''s homedir? 2, When Ashley states thatI can use "exec" to manage the install, I get it, but that begs the question of whether Package truly can''t add arguments. Does anybody know. I''m not a Ruby guy at all, just a sysadmin in a ruby shop, so some of this is a bit new to me. Thanks, </edg> On Mon, Sep 22, 2008 at 9:42 PM, Brian Gupta <brian.gupta@gmail.com> wrote:> > On Mon, Sep 22, 2008 at 8:52 PM, Blake Barnett <shadoi@gmail.com> wrote: > > > > I''d also recommend using a .gemrc file (managed by puppet!) to add "-- > > no-rdoc --no-ri" since it''s usually what everyone wants as the > > default, especially in production. > > > > -Blake > > > > On Sep 22, 2008, at 1:46 PM, Ashley Penney wrote: > > > >> > >> You could just do exec { "gem-install-mysql": command => "gem install > >> mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/mysql_config", > >> } > >> > >> Then you can rely on require => Exec["gem-install-mysql"] elsewhere. > >> > >> On Mon, Sep 22, 2008 at 2:15 PM, Ed Greenberg > >> <greenberg.ed@gmail.com> wrote: > >>> > >>> I need to do this in puppet: > >>> > >>> gem install mysql --no-rdoc --no-ri -- --with-mysql-config=/usr/bin/ > >>> mysql_config > >>> > >>> Not sure how to express any of the arguments to gem install in my > >>> puppet Package stanza. > >>> > >>> can somebody explain?, > >>> > >>>> > >>> > >> > >> > > > > > > > > > > > > > more ~/.gemrc > > update: -B 10 > install: -B 10 > gem: --no-ri --no-rdoc > > -- > - Brian Gupta > > http://opensolaris.org/os/project/nycosug/ > > http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ed Greenberg wrote:> Thanks for the answers, but they raise more questions, if I may. > > 1. For puppet to make use of a .gemrc, should it be in root''s homedir? > > 2, When Ashley states thatI can use "exec" to manage the install, I > get it, but that begs the question of whether Package truly can''t add > arguments. Does anybody know. > > I''m not a Ruby guy at all, just a sysadmin in a ruby shop, so some of > this is a bit new to me.Hello Ed. You should read the mail archives about this issue if you haven''t already. As a package provider, gem is available but fairly basic. Some folks have rolled their own implementations using exec or define. I think language-specific package providers in general have a long way until maturity. Many are not fully-baked (cpan) and some aren''t even in the oven yet (pecl). So be happy that gem package provider is there at all and if it doesn''t suit your needs you have the options of using exec, define or better yet, learn ruby hack the package provider and send in your patches :) -- Mark Foster - Sr. Systems Engineer - BitPusher, LLC We push your bits so you don''t have to! http://www.bitpusher.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 Sep 23, 2008, at 10:38 AM, Ed Greenberg wrote:> > 2, When Ashley states thatI can use "exec" to manage the install, I > get it, but that begs the question of whether Package truly can''t > add arguments. Does anybody know.The short answer is that it cannot. We might add the ability at some point, but at this point, it''s not possible.> > I''m not a Ruby guy at all, just a sysadmin in a ruby shop, so some > of this is a bit new to me.It''s never too late. :) -- Progress isn''t made by early risers. It''s made by lazy men trying to find easier ways to do something. --Robert Heinlein --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---