Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Claus Divossen
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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Ohad Levy
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  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" 
> wrote:
>
> On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull 
> 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-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Nigel Kersten
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"  wrote:

On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull 
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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Michael DeHaan
On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull  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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread James Turnbull
-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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Ohad Levy
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
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-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.