Sha256: 9021f5e7235b37e6db71f15a0f3e1c021733984b8cb310e2749cb8f9d7a658c3
Contents?: true
Size: 1.63 KB
Versions: 33
Compression:
Stored size: 1.63 KB
Contents
# 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{example.com} # 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 '178.250.52.77', user: 'root', roles: %w{app}, my_property: :my_value # set :password, ask('Server password', nil) # # fetch(:password) # server '178.250.53.87', user: 'root', port: 22, password: '***REMOVED***', roles: %w{app} # set :rvm_type, :system # Defaults to: :auto # set :rvm_ruby_version, '2.1.2p95' # Defaults to: 'default' # 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, { # keys: %w(/home/rlisowski/.ssh/id_rsa), # forward_agent: false, # auth_methods: %w(password) # } # # And/or per server (overrides global) # ------------------------------------ # 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' # }
Version data entries
33 entries across 33 versions & 1 rubygems