endorse

deb_deploy

deb_deploy is a capistrano plugin to facilitate the deployment of debian packages (inspired by supply_drop). It works by simply copying (using rsync, or scp) your debian packages to your servers and installing them through the package manager

Installation

gem install deb_deploy

or with Bundler

gem 'deb_deploy'

Tasks

cap deb:bootstrap

This sets up the environment for dpkg or apt deployment, depending on your configuration.

cap deb:deploy

This deploys the debian packages on the target servers.

cap deb:teardown

Cleans up the environment.

Configuration

At the top of your deploy.rb

require 'rubygems'
require 'deb_deploy'

then optionally set some variables

set :debian_source, '.'

the directory containing your debian packages that will be rsynced to the servers.

set :debian_target, '/tmp'

the temp directory on the target machine to hold the packages before installing.

set :debian_package_manager, 'dpkg'

the debian package manager to use (one of [dpkg, apt]).

set :debian_stream_log, false

determines whether to stream the command output.

set :debian_filter, '*'

a glob syntax filter to determine which packages to deploy. By default all will be deployed.