Repository is archived
No commit activity in last 3 years
No release in over 3 years
Capistrano plugin to dynamically load server by AWS EC2 role. Support a helper in capistrano deploy stage configuration file to get internal dns name by role and stage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.3.5, ~> 1.3
>= 10.0.0, ~> 10.0
>= 2.14.1, ~> 2.14
>= 0.2.4, ~> 0.2

Runtime

 Project Readme

Capistrano::Ec2RoleTag

[![Gem Version][GV img]][Gem Version] [![Build Status][BS img]][Build Status] [![Dependency Status][DS img]][Dependency Status] [![Code Climate][CC img]][Code Climate] [![Coverage Status][CS img]][Coverage Status]

Description

Extend capistrano in AWS EC2 by getting private dns name of servers by stage, role

app_hosts = Capistrano::Configuration.ec2_by_role("appworker")
worker_hosts = Capistrano::Configuration.ec2_by_role("backgroundworker")

Installation

$ gem install capistrano-ec2_role_tag or add to your Gemfile this line: gem 'capistrano-ec2_role_tag' then run bundle install

Usage

Just require 'capistrano-ec2_role_tag' in Capfile and then use it as:

As a fancy tool

In config/deploy/staging.rb or config/deploy/production.rb

app_hosts = Capistrano::Configuration.ec2_by_role("appworker")
worker_hosts = Capistrano::Configuration.ec2_by_role("backgroundworker")

role :web, *allhost
...

TODO

  • Support authentication by API key

Contributing

  1. Fork it ( https://github.com/heosuax/capistrano-ec2_role_tag/fork )
  2. Make your feature addition or bug fix and create your feature branch.
  3. Update the Change Log.
  4. Add specs/tests for it. This is important so I don't break it in a future version unintentionally.
  5. Commit, create a new Pull Request.
  6. Check that your pull request passes the [build][travis pull requests].

License

Released under the MIT License. See the LICENSE file for further details.

Links

RubyGems | [Documentation][] | [Source][] | [Bugtracker][] | [Build Status][] | [Dependency Status][] | [Code Climate][]