scottslowe-learning-tools/ovn-docker-ansible/setup.sh.j2
Scott S. Lowe 72a72560fb Add systemd compatibility
Remove old Upstart job file. Add systemd unit file. Edit Consul configuration file template to address systemd compatibility. Modify Ansible playbook to address systemd compatibility. Add missing OVN setup script. Remove unneeded files.

Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org>
2016-12-06 03:42:05 -07:00

14 lines
472 B
Django/Jinja

#!/bin/bash
# Stop the ovn-controller daemon
sudo /usr/share/openvswitch/scripts/ovn-ctl stop_controller
# Configure OVS
sudo ovs-vsctl set Open_vSwitch . \
external_ids:ovn-remote="tcp:192.168.100.101:6642" \
external_ids:ovn-nb="tcp:192.168.100.101:6641" \
external_ids:ovn-encap-ip={{ ansible_enp0s8.ipv4.address }} \
external_ids:ovn-encap-type="geneve"
# Start the ovn-controller daemon
sudo /usr/share/openvswitch/scripts/ovn-ctl start_controller