capistrano
Setup a basic deployment target for the Rails deploy tool capistrano
Version information
released Aug 12th 2014
Start using this module
Add this module to your Puppetfile:
mod 'deversus-capistrano', '0.1.2'
Learn more about managing modules with a PuppetfileDocumentation
deversus/capistrano — version 0.1.2 Aug 12th 2014
capistrano
Overview
Setup a basic deployment target for the Rails deploy tool capistrano.
Ensures the specific directory structure capistrano expects and sets the right permissions and ownership for everything.
For a more comperhensive Rails deployment recipe which makes use of this module, see deversus-rails
.
Requests & patches welcome.
Usage
include capistrano
capistrano::deploytarget {'myapp':
deploy_user => 'capistrano',
share_group => 'puma',
deploy_dir => '/var/www/myapp/', # default
shared_dirs => ['log', 'pids', 'system', 'assets'], # default
}
This would create:
/var/www/myapp/release
owned bycapistrano
/var/www/myapp/shared
owned bycapistrano
and the grouppuma
(your web server will usually need access to this directory), and subdirectories:/var/www/myapp/shared/log
/var/www/myapp/shared/pids
/var/www/myapp/shared/system
/var/www/myapp/shared/assets
Capistrano should run happily the first time using this structure.
Dependencies
- puppetlabs-stdlib (>= 4.1.0)