I’m currently working on providing server provisioning and deployment automation of certain project. I have decided to use Sprinkle & Capistrano. I’m actually stuck dealing with ssh user stuff since i want, as part of provisioning phase with sprinkle, to create a “deploy” user which should be used by Capistrano to perform deployment. The problem I’m facing is related to the way i should configure deploy.rb, i don’t know how to setup user & password (let’s say “root”) to be used by sprinkle and after that change them to the new created “deploy” user to perform deployment with Capistrano. Provisioning and deployment are two different phases but they share the same configuration, maybe there are some tricks to do that; anybody out there with experience in this area?
I’m currently working on providing server provisioning and deployment automation of certain project. I
Share
You can configure Capistrano’s deploy user like so:
You can also set the password using
set :password, "secret_password", but it’s probably more advisable to either enter the password manually, or have sprinkle set up SSH keys for you. This will avoid having the password stored in plaintext.Sprinkle has similar settings under the
sshblock:but the same issues apply here – you should probably supply the password manually for this purpose.