O'Reilly logo

Puppet 2.7 Cookbook by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing Rails applications

Rails is an enormously popular web app framework (in the sense that it's widely used, rather than that people like it). So it's probable that you'll be called upon to manage it at some point. The recipe presented here contains most of what you'll need to prepare a server to have a Rails application installed on it. This recipe assumes that you'll be using Nginx and Passenger as the web server, though you can easily modify the recipe to use Apache instead.

How to do it...

  1. Create the directory structure for a rails module:
    # mkdir /etc/puppet/modules/rails
    # mkdir /etc/puppet/modules/rails/manifests
    # mkdir /etc/puppet/modules/rails/templates
    # mkdir /etc/puppet/modules/rails/files
    
    
  2. Create the file /etc/puppet/modules/rails/manifests/init.pp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required