5 # Supports bulk-adding hosts to roles, the primary
6 # server in each group is considered to be the first
7 # unless any hosts have the primary property set.
8 role
:app, %w
{deploy
@example.com
}
9 role
:web, %w
{deploy
@example.com
}
10 role
:db, %w
{deploy
@example.com
}
12 # Extended Server Syntax
13 # ======================
14 # This can be used to drop a more detailed server
15 # definition into the server list. The second argument
16 # something that quacks like a hash can be used to set
17 # extended properties on the server.
18 server
'example.com', user
: 'deploy', roles
: %w
{web app
}, my_property
: :my_value
20 # you can set custom ssh options
21 # it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
22 # you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
25 # keys: %w(/home/rlisowski/.ssh/id_rsa),
26 # forward_agent: false,
27 # auth_methods: %w(password)
30 # server 'example.com',
34 # user: 'user_name', # overrides user setting above
35 # keys: %w(/home/user_name/.ssh/id_rsa),
36 # forward_agent: false,
37 # auth_methods: %w(publickey password)
38 # # password: 'please use keys'
40 # setting per server overrides global ssh_options
42 # fetch(:default_env).merge!(rails_env: :staging)