DanarchyDeploy

dAnarchy Deploy is a template-driven Ruby gem to deploy locally or remotely to Gentoo systems (and debian/ubuntu, more being added). This can take a .JSON or .YAML input file, or a CouchDB connection as a deployment template and install necessary packages, add users and groups, write ERB templates, and decompress tar/zip archives. More documentation incoming.

Installation

Add this line to your application's Gemfile:

gem 'danarchy_deploy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install danarchy_deploy

!! Since dAnarchy Deploy takes several actions that require root/sudo access, I install the gem with sudo as any remote deployment will on the target host:

$ sudo gem install danarchy_deploy

Usage

dAnarchy Deploy usage info can be read with -h/--help:

$ danarchy_deploy -h
Usage: sudo /usr/local/bin/danarchy_deploy (local|remote) --json /path/to/deployment.json [options]
    -j, --json=file                  Read configuration from JSON file.
    -y, --yaml=file                  Read configuration from YAML file.
    -p, --pretend                    Pretend run: Don't take any action.
    -f, --first-run                  First Run: Run as a first run causing services to run all init actions.
    -d, --deploy-dir                 Deployment directory. Defaults to '/danarchy/deploy'.
    --ssh-verbose                Verbose SSH stdout/stderr output.
    --version                    Print /usr/local/bin/danarchy_deploy version.
    -h, --help                       Print this help info.

DanarchyDeploy: 0.1.0
Exiting! Must be run with sudo!

More documentation incoming...