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
.
Python & tox. See imports in library/*
and tasks in molecule/default/converge.yml
if any specific, but those should be added in tox.ini
.
See defaults/main.yml.
See meta/main.yml and molecule/default/requirements.yml if any.
- hosts: all
roles:
- wazo.consul-service
MIT
Wazo Developers for Wazo https://wazo.io