Sha256: 4937967b928d27f99d3ad6cc8f8534be19975b103419a4a3b8356f08fba50d56
Contents?: true
Size: 1.61 KB
Versions: 15
Compression:
Stored size: 1.61 KB
Contents
set :stage, :production # 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. role :app, %w{vagrant@localhost:2222} role :web, %w{vagrant@localhost:2222} role :db, %w{vagrant@localhost:2222} # 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 'localhost:2222', user: 'vagrant', roles: %w{web app}, my_property: :my_value set :port, 2222 set :ssh_options, { keys: %w(~/.vagrant.d/insecure_private_key), forward_agent: false, auth_methods: %w(publickey) } # 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, { # keys: %w(/home/rlisowski/.ssh/id_rsa), # forward_agent: false, # auth_methods: %w(password) # } # 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 fetch(:default_env).merge!(rails_env: :production)
Version data entries
15 entries across 15 versions & 1 rubygems