scottslowe-learning-tools/ovn-docker-ansible/config.json.j2
Scott S. Lowe 70bb2e959e Update files for OVS/OVN
Update files based on additional testing. Add lines to Vagrantfile to use virtio NICs w/ VirtualBox. Re-arrange config keys in Consul configuration template. Add quotes to IP addresses in machines.yml. Update Ansible playbook in provision.yml to install Python OVS libraries.
2016-09-28 23:14:22 -06:00

19 lines
571 B
Django/Jinja

{% set lbracket = "[" %}
{% set rbracket = "]" %}
{% set quote = '"' %}
{
"advertise_addr": "{{ hostvars[inventory_hostname]['ansible_eth1']['ipv4']['address'] }}",
"bootstrap_expect": 3,
"client_addr": "0.0.0.0",
"datacenter": "dc1",
"data_dir": "/var/consul",
"enable_syslog": true,
"log_level": "INFO",
"retry_join": [ {% for host in groups['all'] %}{% if not loop.last %}
"{{ hostvars[host]['ansible_eth1']['ipv4']['address'] }}",
{% else %}
"{{ hostvars[host]['ansible_eth1']['ipv4']['address'] }}"
{% endif %}{% endfor %} ],
"server": true
}