Puppet Installation of 'Passenger Standalone'

256 views
Skip to first unread message

Jon Jaroker

unread,
May 21, 2012, 11:35:18 PM5/21/12
to Phusion Passenger Discussions
Hello, Would someone please recommend a non-interactive way to install
'passenger standalone'?

The rakefile allows 'rake nginx' and 'rake apache', but I want to run
passenger in standalone mode. The command 'passenger start' is not
well suitable for automation with puppet as it waits for user input if
a dependency is missing.

I created a puppet module for this installation, but it is
unreliable. The standalone installation is implemented as:
-------------------------------
# Passenger Standalone Completes Installation by installing Nginx
exec{'Passenger Standalone First Run':
command => "${rubygems_bindir}/passenger start && $
{rubygems_bindir}/passenger stop",
creates => "${passenger_standalone_nginx_directory}/nginx",
logoutput=> on_failure,
require => Ruby::Gem['passenger'],
timeout => 900,
}
-------------------------------

Thank you,
Jon

Hongli Lai

unread,
May 22, 2012, 1:38:14 AM5/22/12
to phusion-...@googlegroups.com
Can't you just ensure that all dependencies are installed?

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Jon Jaroker

unread,
May 22, 2012, 10:39:14 PM5/22/12
to Phusion Passenger Discussions
I already manage all dependencies except for nginx. I am currently
relying on passenger standalone to build nginx because I am not sure
about the nginx requirements.

How would you suggest I manage nginx with Puppet while making sure
that nginx is compiled correctly for Passenger?

Thank you,
Jon

On May 22, 1:38 am, Hongli Lai <hon...@phusion.nl> wrote:
> E-mail: i...@phusion.nl

Hongli Lai

unread,
May 23, 2012, 2:20:14 AM5/23/12
to phusion-...@googlegroups.com
On Wed, May 23, 2012 at 4:39 AM, Jon Jaroker <jjar...@gmail.com> wrote:
> I already manage all dependencies except for nginx.  I am currently
> relying on passenger standalone to build nginx because I am not sure
> about the nginx requirements.
>
> How would you suggest I manage nginx with Puppet while making sure
> that nginx is compiled correctly for Passenger?

You can compile binaries with 'passenger package-runtime'. Then you
just have to put the binaries in the right place.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Hongli Lai

unread,
Oct 22, 2012, 8:40:20 AM10/22/12
to phusion-...@googlegroups.com
On Thu, Oct 18, 2012 at 11:43 PM, Thomas (TJ) Biddle <urin...@gmail.com> wrote:
 A reply would be fantastic :-)

On Wednesday, October 10, 2012 6:14:50 PM UTC-7, Thomas (TJ) Biddle wrote:
And what would be "The right place" ? - Does `passenger package-runtime` compile to a different place than `passenger start` does when it runs the first time?

'passenger start' places files in /var/lib/passenger-standalone when run as root, or in ~/.passenger/standalone otherwise. 'passenger package-runtime' generates the same contents but puts it elsewhere.
Reply all
Reply to author
Forward
0 new messages