Skip to content

wazo-platform/ansible-role-consul-service

Repository files navigation

Ansible role consul-service

Ansible role defining a Consul service. It'll

  • Install Consul via brianshumate.consul as an agent.
  • Define a service with a file in /etc/consul/consul.d/<consul_service_name>.yml

This role is tested using Molecule. The default will use Docker that you must install yourself. Then run tox to setup python environment and start testing. If docker can't do, a Vagrant & libvirt (tested with KVM) is also possible, set up those then tox -- test -s vagrant.

A Vagrantfile is also provided for development purpose. Install Vagrant and VirtualBox (or libvirt / KVM), then run vagrant up.

Requirements

Python & tox. See imports in library/* and tasks in molecule/default/converge.yml if any specific, but those should be added in tox.ini.

Role Variables

See defaults/main.yml.

Dependencies

See meta/main.yml and molecule/default/requirements.yml if any.

Example Playbook

- hosts: all
  roles:
    - wazo.consul-service

License

MIT

Author Information

Wazo Developers for Wazo https://wazo.io