Basic Rails Server with MySQL, Apache, RVM and Passenger
Thomas Herrmann (42ways)

Thomas Herrmann (42ways)



12,256 latest version

1.6 quality score

Version information

  • 1.0.0 (latest)
released Jul 3rd 2019

Start using this module


42ways/railsapp — version 1.0.0 Jul 3rd 2019


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 (https://github.com/capistrano/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 => 'myrailsapp.example.com',

railsapp::app { 'firstrailsapp' :
    fqdn                => 'myfirstrailsapp.example.com',
    dbuser              => 'firstdbuser',
    dbpassword          => 'firstsecret',

railsapp::app { 'secondrailsapp' :
    fqdn                => 'mysecondrailsapp.example.com',
    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.