Role Detail

indigo-dc.consul

Deploy consul agent/server with dnsmasq
Downloads
407
Type Ansible
Minimum Ansible Version 2.0
Installation $ ansible-galaxy install indigo-dc.consul
Tags
consul
discovery
Last Commit
Last Imported
Version History
Version Release Date
2.0.1
2.0.0
1.0.0
OS Platforms
Platform Version
EL 7
Ubuntu trusty
Ubuntu xenial
Dependencies
Role
Last 10 Imports
Completed Status
SUCCESS
SUCCESS
SUCCESS
SUCCESS

Role Name

Run consul in agent or server mode (depending on the variable consul_mode) in container using the image progrium/consul and configures consul as primary DNS for the host node and docker containers.

This role has been specifically developed to be used for the deployment of Mesos in the framework of INDIGO-DataCloud project.

Role Variables

  • docker_bridge_ip: IP to be statically assigned to docker bridge
  • consul_servers_list: (optional) list of consul server nodes - alternatively, you can use a proper inventory file specifying the hosts group [consul_servers]
  • consul_image (default: progrium/consul)
  • consul_version (default: latest)

Dependencies

  • indigo-dc.docker

Example Playbook

- hosts: agents
  roles:
     - { role: indigo-dc.consul, docker_bridge_ip: "172.0.17.1", consul_mode: "agent", consul_servers_list: ["172.10.10.1", "172.10.10.2", "172.10.10.3" ] }

License

Apache Licence v2 [1]

[1] http://www.apache.org/licenses/LICENSE-2.0

None