Cannot set up Puppet to use Apache/Passenger on a custom install

85 views
Skip to first unread message

Kmbu

unread,
Jun 22, 2012, 11:02:10 AM6/22/12
to puppet...@googlegroups.com
Hi All,

I'm trying to set up the puppetmaster to go through Apache/Passenger. I already have Apache/Passenger running and serving the dashboard. I followed the instructions at:

http://www.tomhayman.co.uk/linux/install-puppet-modpassenger-mysql-stored-procs-centos-6-rhel6/
http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger
http://docs.puppetlabs.com/guides/passenger.html

However, it seems that Passenger expects to find my installation at /etc/puppet and /var/lib/puppet. However, my install is set up in a different part of the file system. How can I tell Passenger where my puppetmaster lives? Here's what I see in the Apache error log:

[Fri Jun 22 11:13:23 2012] [notice] Graceful restart requested, doing restart
[Fri Jun 22 11:13:23 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 22 11:13:23 2012] [notice] Digest: done
[Fri Jun 22 11:13:24 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0e DAV/2 Phusion_Passenger/3.0.7 configured -- resuming normal operations
Could not prepare for execution: Got 2 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /etc/puppet; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet

$ gem list

*** LOCAL GEMS ***

activemodel (3.2.6)
activerecord (3.2.6)
activesupport (3.2.6)
arel (3.0.2)
builder (3.0.0)
daemon_controller (1.0.0, 0.2.6)
facter (1.5.8)
fastthread (1.0.7)
hiera (0.3.0)
hiera-mysql (0.1.1)
hiera-puppet (0.3.0)
i18n (0.6.0)
multi_json (1.3.6)
mysql (2.8.1)
passenger (3.0.7)
puppet (2.7.6)
rack (1.4.1, 1.2.2)
rake (0.9.2.2)
tzinfo (0.3.33)

Any help appreciated!

Jeff McCune

unread,
Jun 22, 2012, 11:06:18 AM6/22/12
to puppet...@googlegroups.com
On Fri, Jun 22, 2012 at 8:02 AM, Kmbu <yum...@hotmail.com> wrote:
> Hi All,
>
> I'm trying to set up the puppetmaster to go through Apache/Passenger. I
> already have Apache/Passenger running and serving the dashboard. I followed
> the instructions at:
>
> http://www.tomhayman.co.uk/linux/install-puppet-modpassenger-mysql-stored-procs-centos-6-rhel6/
> http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger
> http://docs.puppetlabs.com/guides/passenger.html

In config.ru you can modify the arguments passed to the Puppet master process.

I recommend setting --confdir in config.ru and then set vardir in puppet.conf.

-Jeff

Kmbu

unread,
Jun 23, 2012, 7:27:04 AM6/23/12
to puppet...@googlegroups.com
Just wanted to write back to say that everything works like a charm now. I started with this due to capacity issues, so I intend to try increasing the load to see how much more the Apache/Passenger setup can handle as compared to the built-in server.

Thanks for the support!

On Friday, 22 June 2012 17:06:18 UTC+2, Jeff McCune wrote:
Reply all
Reply to author
Forward
0 new messages