Manage rails deploys
Ruby Puppet
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
files
lib/puppet/parser/functions
manifests
spec
templates
.fixtures.yml
.gitignore
.travis.yml
Gemfile
LICENSE
Modulefile
README.md
Rakefile

README.md

puppet-rails

Build Status

Allows you to manage your Rails deploys.

Setup environment

Use the rails::deploy resource type to add your application user and create your deploy path:

rails::deploy { 'my-app-name':
  deploy_path => '/var/www/rails',
  app_user    => 'rails',
}

This will setup add the user rails and create the directory /var/www/rails/my-app-name owned by rails. If var or /var/www do not exist, they will be created and owned by the deploy user.

database.yml

If relevant, you can manage the database.yml for your application by specifying the relevant parameters:

rails::deploy { 'my-app':
  rails_env         => 'staging',
  database_adapter  => 'mysql2',
  database_name     => 'my_app_db',
  database_host     => 'db.app.com',
  database_user     => 'rails_db',
  database_password => 'sekrit',
  database_charset  => 'latin1',
  database_pool     => 12,
}

Only database_adapter and database_password are required. The database_name defaults to the application name underscored.