Node coordination for Consul

106 views
Skip to first unread message

Brian Hicks

unread,
May 19, 2014, 8:22:29 PM5/19/14
to ansible...@googlegroups.com
I'm new to Ansible, and trying to write a state to set up and bootstrap a Consul cluster.

I seem to have the basics down (downloading packages, and all.) However, I'm stuck on the components of the bootstrap process (http://www.consul.io/docs/guides/bootstrapping.html). Specifically:

  • How can I ensure that a given set of tasks only executes if a command succeeds/fails on *all* the target servers?
  • How can I run a command on only one server, followed by all the rest?
Starting servers in consul is pretty easy. But the bootstrap process is a delicate little dance right now, one which I feel Ansible could deal with pretty well. But without these two things, is there any way it could be done?

Michael DeHaan

unread,
May 21, 2014, 5:57:31 PM5/21/14
to ansible...@googlegroups.com
Basically installing any arbitrary application with Ansible (how to write a playbook) is a bit out of scope for this list.

I'd take a look at github.com/ansible/ansible-examples and more importantly galaxy.ansible.com for some starters on playbook construction, review module docs, and go from there.

If Consul is hard to install, that is somewhat of Consul's problem, alas :)




--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/32149c71-6ee7-479f-95dc-ff3c4b020038%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages