What is this

Puppet:
a free (libre) configuration management utility. It runs on many Unix-like systems as well as on Microsoft Windows, and includes its own declarative language to describe system configuration.

Passenger:
A web server and application server for your web apps. Keeps your users happy, saves your business time and money.

How to setup puppetmaster with nginx and passenger 5.0 in Ubuntu 14.04

0. Set up Passenger 5.0 repository

1. Install nginx-full and Passenger

2. Create rake working directory

config some like this:

3. Set up nginx.conf work with Passenger

change some like this:

4. Create nginx server block to replace webrick

add some like this:

5. Make puppet.conf to work with nginx

add or change some like this:

6. Disable puppetmaster service

7. Restart nginx

8. Test

Ref

+ Google