Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # Simple Role Syntax
  2. # ==================
  3. # Supports bulk-adding hosts to roles, the primary
  4. # server in each group is considered to be the first
  5. # unless any hosts have the primary property set.
  6. # Don't declare `role :all`, it's a meta role
  7. role :app, %w{pbfdemo@paybyfinance.healthywebsites.co.uk}
  8. role :web, %w{pbfdemo@paybyfinance.healthywebsites.co.uk}
  9.  
  10. # Extended Server Syntax
  11. # ======================
  12. # This can be used to drop a more detailed server
  13. # definition into the server list. The second argument
  14. # something that quacks like a hash can be used to set
  15. # extended properties on the server.
  16. server 'pbfdev.healthywebsites.co.uk', user: 'pbfdemo', roles: %w{web app}
  17.  
  18. set :deploy_to, '/usr/local/www/pbfdev/data'
  19. set :branch, 'master'
  20. set :application, 'pbftesting'
  21.  
  22. # you can set custom ssh options
  23. # it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
  24. # you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
  25. # set it globally
  26. set :ssh_options, {
  27. port: 2222,
  28. forward_agent: true
  29. }
  30. # and/or per server
  31. # server 'example.com',
  32. # user: 'user_name',
  33. # roles: %w{web app},
  34. # ssh_options: {
  35. # user: 'user_name', # overrides user setting above
  36. # keys: %w(/home/user_name/.ssh/id_rsa),
  37. # forward_agent: false,
  38. # auth_methods: %w(publickey password)
  39. # # password: 'please use keys'
  40. # }
  41. # setting per server overrides global ssh_options
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement