# Simple Role Syntax
# ==================
# Supports bulk-adding hosts to roles, the primary server in each group
# is considered to be the first unless any hosts have the primary
# property set.  Don't declare `role :all`, it's a meta role.

role :app, "stripstarter.org"
role :web, "stripstarter.org"
role :db,  "stripstarter.org", :primary => true


# Extended Server Syntax
# ======================
# This can be used to drop a more detailed server definition into the
# server list. The second argument is a, or duck-types, Hash and is
# used to set extended properties on the server.

# server 'stripstarter.org', user: 'stripstarter', roles: %w{web app}, my_property: :my_value


# Custom SSH Options
# ==================
# You may pass any option but keep in mind that net/ssh understands a
# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
#
# Global options
# --------------
 set :ssh_options, {
   user: 'deploy',
   keys: %w(~/.ssh/id_rsa ~/.ssh/stripstarter),
   forward_agent: false,
   auth_methods: %w(publickey password)
 }
#
# And/or per server (overrides global)
# ------------------------------------
# server '107.170.241.223',
#   user: 'deploy',
#   roles: %w{web app},
#   ssh_options: {
#     user: 'deploy', # overrides user setting above
#     keys: %w(/Users/michael/.ssh/id_rsa),
#     forward_agent: false,
#     auth_methods: %w(publickey password)
#     # password: 'please use keys'
#   }

