No commit activity in last 3 years
No release in over 3 years
Consul discovery for Capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.13.2
 Project Readme

Gem Version

capistrano-consul

Capistrano plugin to populate roles with hosts from consul

Installation

Add this line to your application's Gemfile:

gem 'capistrano-consul'

And then execute:

$ bundle

Usage

    # config/deploy/<development|stage|prod>.rb
    set :consul_url, 'http://192.168.22.30:8500'

    set :ssl_options, { ssl: {
                          client_cert:  OpenSSL::X509::Certificate.new(File.read('./cert.pem')),
                          client_key: OpenSSL::PKey::RSA.new(File.read('./key.pem'), '')
                        }
                      }
    # Capfile or config/deploy.rb
    require 'capistrano-consul'

    # Give "cache" role to hosts publishing memcached service
    service 'memcached', :cache

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request