Skip to content

Instantly share code, notes, and snippets.

@albanpeignier
Created September 21, 2010 09:16
Show Gist options
  • Select an option

  • Save albanpeignier/589439 to your computer and use it in GitHub Desktop.

Select an option

Save albanpeignier/589439 to your computer and use it in GitHub Desktop.
# Use multistage (require gem capistrano-ext)
require 'capistrano/ext/multistage'
set :stages, %w(sandbox unstable staging production)
set :default_stage, 'unstable'
set :application, "tryphon puppet"
set :deploy_to, "/var/lib/puppet/conf"
set :scm, :git
set :repository, "git://172.20.10.7/puppet"
set :git_enable_submodules, true
set :deploy_via, :remote_cache
set :branch, "master"
set :keep_releases, 5
after "deploy:update", "deploy:cleanup"
set :use_sudo, false
namespace :deploy do
desc "Custom restart task"
task :restart, :roles => :app, :except => { :no_release => true } do
# do nothing
end
task :finalize_update, :except => { :no_release => true } do
# do nothing
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment