mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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>
14 lines
472 B
Django/Jinja
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
|