Weston Platter <westonplat...@gmail.com> writes:
> I wanted to ask if anyone out there is using Ansible to provision
> servers and 100% deploy their Rails (rather than using Capistrano). 
>
> I saw a couple of posts/projects related to this:
>
> * https://mxey.net/deploying-rails-with-ansible/
> * https://github.com/nicolai86/ansible-rails-deployment
>
> I've setup 20 or so Rails deployments with Capistrano. The current
> project that I'm working on uses upstart to manage the Rails
> sever/worker processes. As I'm having to push capistrano to handle
> more and more system level operations, I think putting it all in
> Ansible with my other server system configs would be a better
> separation of concerns. I'm the primary developer and don't need to
> worry about giving non-system capable devs sudo access to servers.
>
> Has anyone else run into this? Any pros/cons that run into after
> moving deployments to executed by Ansible?

I'm a huge fan of managing rails deploys via Ansible. I found myself,
like you, struggling to stretch Cap to fit my needs, whereas ansible
makes all of this pretty simple. I'm working on open sourcing more of my
deployment infrastructure, but here is one example, deploying Discourse
outside their supported Docker install:

https://github.com/nortonimperiallabs/infra/tree/master/roles/discourse

It's a fairly complex app with Sidekiq workers, and stuff, but Ansible
makes it pretty much painless to manage deploying. In general, I've
found it easiest to either ship my own Ruby RPMs and ignore things like
RVM/rbenv. This role is used to deploy to a Fedora 20 box with Ruby
2.0.0 on it, which is Good Enough that I don't have to worry about
it. There is a fork of that repo or something that ports the Sidekiq
workers to systemd jobs, and other system-level integration bits, too.

You can do some pretty cool things when you pair Ansible with Jenkins,
which I don't think you really could do easily with Cap, like this
little bit from AnsibleFest
https://docs.google.com/a/n.rix.si/presentation/d/1-AaITmG0_d6O7NKXYb8ErOacvqBryFkEI7tHhb43uDo/pub?start%3Dfalse&loop%3Dfalse&delayms%3D3000#slide=id.g18178d75e_094
(Slide 21 if the link explodes) that I realllllly want to try out soon.

Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8738fari4v.fsf%40kusanagi.fort.kickass.systems.
For more options, visit https://groups.google.com/d/optout.

Reply via email to