2
PUPPETMASTER INSIDE APACHE & PASSENGER
3
======================================
5
This is about running a puppetmaster inside Apache.
7
Please also see the docs at http://reductivelabs.com/trac/puppet/wiki/UsingPassenger
8
for further information.
14
Passenger [1] (AKA mod_rails or mod_rack) is an Apache 2.x Extension for
15
serving Rails or Rack applications.
17
This extension allows running a puppetmasterd as a Rack application;
18
it has only been tested with Passenger.
21
SHORT INSTALLATION INSTRUCTIONS
22
===============================
24
Make sure puppetmasterd ran at least once, so the SSL certificates
28
gem install -v 0.4.0 rack
30
Install Apache and Passenger:
31
apt-get install apache2
33
passenger-install-apache2-module
34
(See the Passenger installation instructions [2] for details.)
36
Enable Apache modules:
41
cp apache2.conf /etc/apache2/conf.d/puppetmasterd
42
vim /etc/apache2/conf.d/puppetmasterd (replace the server hostnames)
44
Install the rack application [3]:
45
mkdir -p /usr/share/puppet/rack/puppetmasterd
46
mkdir /usr/share/puppet/rack/puppetmasterd/public /usr/share/puppet/rack/puppetmasterd/tmp
47
cp config.ru /usr/share/puppet/rack/puppetmasterd
48
chown puppet /usr/share/puppet/rack/puppetmasterd/config.ru
51
/etc/init.d/apache2 restart
55
[1] http://www.modrails.com/
57
[2] http://www.modrails.com/install.html
59
[3] Passenger will not let applications run as root or the Apache user,
60
instead an implicit setuid will be done, to the user whom owns
61
config.ru. Therefore, config.ru shall be owned by the puppet user.