Forge Home


Basic Rails Server with MySQL, Apache, RVM and Passenger


13,431 latest version

1.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Apr 4th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod '42ways-railsapp', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add 42ways-railsapp
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install 42ways-railsapp --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



42ways/railsapp — version 1.0.0 Apr 4th 2014


puppet-railsapp is our puppet provisioning module for a basic rails application server.

The module can be used to deploy multiple rails application to the rails application server by installing the apps under different vhosts on the server.

The module assumes the rails application will be deployed via capistrano ( or at least in a capistrano like directory structure.

The configuration files config.yml and database.ymlare created from the corresponding files in the templates dir (of the calling module). You can ovveride the path to these two config files with the variable configtemplatedir


In general, you want to declare the railsapp in order to setup your server and then define one or more app resources on it.

Here is an example with two rails applications:

class { 'railsapp' :
    servername => '',

railsapp::app { 'firstrailsapp' :
    fqdn                => '',
    dbuser              => 'firstdbuser',
    dbpassword          => 'firstsecret',

railsapp::app { 'secondrailsapp' :
    fqdn                => '',
    dbuser              => 'seconddbuser',
    dbpassword          => 'secondsecret',
    configtemplatedir   => 'mymodule/secondapp',


This module is based on puppetlabs/apache, puppetlabs/mysql, puppetlabs/firewall and maestrodev/rvm which all can be found on puppetforge.


Copyright 2013, 2014 42ways UG, teleteach GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.