aidaph.consul

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

About

Deploy consul agent/server with dnsmasq

Install
ansible-galaxy install aidaph.consul
GitHub repository
License
apache-2.0
Downloads
120
Owner