Skip to content

Instantly share code, notes, and snippets.

@tsabat
Last active December 19, 2015 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsabat/5891043 to your computer and use it in GitHub Desktop.
Save tsabat/5891043 to your computer and use it in GitHub Desktop.
capistrano multistage script.
set :branch, "master"
# tagged:
# Role:app && Environment:'production'
# filtered:
# instance-state-name:running
aws_servers = AwsUtil.new.deployed_app_server_dns_names
role(:app) { aws_servers }
role (:web) { aws_servers }
role :db, aws_servers[0], primary: true
@tsabat
Copy link
Author

tsabat commented Jun 29, 2013

A capistrano multistage script that dynamically pulls dns names by tag, using utils.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment