Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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, %w{pbfdemo@paybyfinance.healthywebsites.co.uk}
- role :web, %w{pbfdemo@paybyfinance.healthywebsites.co.uk}
- # Extended Server Syntax
- # ======================
- # This can be used to drop a more detailed server
- # definition into the server list. The second argument
- # something that quacks like a hash can be used to set
- # extended properties on the server.
- server 'pbfdev.healthywebsites.co.uk', user: 'pbfdemo', roles: %w{web app}
- set :deploy_to, '/usr/local/www/pbfdev/data'
- set :branch, 'master'
- set :application, 'pbftesting'
- # you can set custom ssh options
- # it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
- # you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
- # set it globally
- set :ssh_options, {
- port: 2222,
- forward_agent: true
- }
- # and/or per server
- # server 'example.com',
- # user: 'user_name',
- # roles: %w{web app},
- # ssh_options: {
- # user: 'user_name', # overrides user setting above
- # keys: %w(/home/user_name/.ssh/id_rsa),
- # forward_agent: false,
- # auth_methods: %w(publickey password)
- # # password: 'please use keys'
- # }
- # setting per server overrides global ssh_options
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement