Phillip B Oldham
2010-Mar-10 08:45 UTC
[Puppet Users] Is it possible for puppet to compile packages?
We use Nginx rather than apache due to a number of useful modules, however these modules need to be compiled in and therefore we''re unable to use a package manager for installation. Would it be possible with puppet to grab specific versions of the various source files, compile them, and then configure the servers? -- 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.
Ohad Levy
2010-Mar-10 09:02 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
I''m not saying its a good thing, but I''ve created an rpm for passenger, which compiles the apache modules in the post installation scripts. all of the required packages for building it are part of the rpm package requirements... Ohad On Wed, Mar 10, 2010 at 4:45 PM, Phillip B Oldham <phillip.oldham@gmail.com>wrote:> We use Nginx rather than apache due to a number of useful modules, > however these modules need to be compiled in and therefore we''re > unable to use a package manager for installation. > > Would it be possible with puppet to grab specific versions of the > various source files, compile them, and then configure the servers? > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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.
James Turnbull
2010-Mar-10 09:04 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/03/10 8:02 PM, Ohad Levy wrote:> I''m not saying its a good thing, but I''ve created an rpm for passenger, > which compiles the apache modules in the post installation scripts. > > all of the required packages for building it are part of the rpm package > requirements... >What Ohad said. If, and it is rarely, I have to do this then I build some own RPM packages and stick them in a custom Yum repo and manage them like that. Regards James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS5dgoyFa/lDkFHAyAQKA7gf+LjXqt5jjOdCLJct0vH7Jvwu32+XGL1Zb qidVELcFeCE4Nfpt0GhW15uQcS6TA/uj92vFPUrZ791Jh6GuHgt31VzrvSIplULM OuiorQPDISO5IC/PZQa6OoHmI+ReEfCeCskIlXOSL7yE7XHrl5lvI5dNU0UkiB1X kdu1/6rF9gzF0MX1yl7kCVf6VsZBSKAzBt9qnztsxZ13ll1I12BsbQDCRhH96vqy 6Xxk2MMbfevPnoFKN3pHKs4ulo2ZgappP0Vn4bc+vA8bwmMGZl1vdeyNpuPP4FN2 ocOvefzodcY0TRHvgYGekg0LVNj3AZzTk4W1HRnydRgWZV542v89jw==Nar8 -----END PGP SIGNATURE----- -- 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.
Michael DeHaan
2010-Mar-10 15:45 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull <james@lovedthanlost.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 10/03/10 8:02 PM, Ohad Levy wrote: >> I''m not saying its a good thing, but I''ve created an rpm for passenger, >> which compiles the apache modules in the post installation scripts. >> >> all of the required packages for building it are part of the rpm package >> requirements... >> > > What Ohad said. If, and it is rarely, I have to do this then I build > some own RPM packages and stick them in a custom Yum repo and manage > them like that. > > Regards > > James Turnbull >"which compiles the apache modules in the post installation scripts" Apache modules can easily be shipped as seperate packages (mod_python as an example) that contain loadable modules. (Forgive my ignorance, but is that not doable for passenger?) Anyway, from a best practices perspective, it would be better to do the rebuilds on your build server as James said. You don''t want to be doing compilation on production servers, and you won''t have very good granularity into what happens if something goes wrong. rpm %post sections of any sufficient complexity are to be avoided. --Michael -- 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.
Nigel Kersten
2010-Mar-10 16:01 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
I build debs for passenger based upon the brightbox PPA dsc file. I refuse to compile by hand on production. On Mar 10, 2010 7:46 AM, "Michael DeHaan" <michael@reductivelabs.com> wrote: On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull <james@lovedthanlost.net> wrote:> -----BEGIN PGP SI...Apache modules can easily be shipped as seperate packages (mod_python as an example) that contain loadable modules. (Forgive my ignorance, but is that not doable for passenger?) Anyway, from a best practices perspective, it would be better to do the rebuilds on your build server as James said. You don''t want to be doing compilation on production servers, and you won''t have very good granularity into what happens if something goes wrong. rpm %post sections of any sufficient complexity are to be avoided. --Michael -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.... -- 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.
Ohad Levy
2010-Mar-10 16:04 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
yeah, I''m ashamed - thats why I started by saying that its NOT a good idea ;) On Thu, Mar 11, 2010 at 12:01 AM, Nigel Kersten <nigelk@google.com> wrote:> I build debs for passenger based upon the brightbox PPA dsc file. > > I refuse to compile by hand on production. > > On Mar 10, 2010 7:46 AM, "Michael DeHaan" <michael@reductivelabs.com> > wrote: > > On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull <james@lovedthanlost.net> > wrote: > > -----BEGIN PGP SI... > > Apache modules can easily be shipped as seperate packages (mod_python > as an example) > that contain loadable modules. > > (Forgive my ignorance, but is that not doable for passenger?) > > Anyway, from a best practices perspective, it would be better to do > the rebuilds on your build server > as James said. > > You don''t want to be doing compilation on production servers, and you > won''t have very good > granularity into what happens if something goes wrong. > > rpm %post sections of any sufficient complexity are to be avoided. > > --Michael > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group.... > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- 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.
Claus Divossen
2010-Mar-10 22:34 UTC
Re: [Puppet Users] Is it possible for puppet to compile packages?
Actualy, this is not much different to what Ruby gems are doing when the have a native part or native bindings. It''s a way to create platform independent packages. -- Claus On Wed, 2010-03-10 at 10:45 -0500, Michael DeHaan wrote:> > On 10/03/10 8:02 PM, Ohad Levy wrote: > >> I''m not saying its a good thing, but I''ve created an rpm for > passenger, > >> which compiles the apache modules in the post installation scripts.-- 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.