Merge branch 'master' into corywip
This commit is contained in:
commit
9106614582
Binary file not shown.
BIN
files/libopenvswitch-dev_2.14.0-1_amd64.deb
Normal file
BIN
files/libopenvswitch-dev_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/libopenvswitch_2.14.0-1_amd64.deb
Normal file
BIN
files/libopenvswitch_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-common_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-common_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-datapath-dkms_2.14.0-1_all.deb
Normal file
BIN
files/openvswitch-datapath-dkms_2.14.0-1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-datapath-source_2.14.0-1_all.deb
Normal file
BIN
files/openvswitch-datapath-source_2.14.0-1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-dbg_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-dbg_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-ipsec_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-ipsec_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-pki_2.14.0-1_all.deb
Normal file
BIN
files/openvswitch-pki_2.14.0-1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-switch_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-switch_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-test_2.14.0-1_all.deb
Normal file
BIN
files/openvswitch-test_2.14.0-1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-testcontroller_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-testcontroller_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
files/openvswitch-vtep_2.14.0-1_amd64.deb
Normal file
BIN
files/openvswitch-vtep_2.14.0-1_amd64.deb
Normal file
Binary file not shown.
BIN
files/ovn_20.09.0-1_amd64.deb
Normal file
BIN
files/ovn_20.09.0-1_amd64.deb
Normal file
Binary file not shown.
@ -4,8 +4,9 @@ After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Type=oneshot
|
||||
RestartSec=5
|
||||
RemainAfterExit=true
|
||||
|
||||
ExecStart=/usr/sbin/ovsovn-service-manager.sh START
|
||||
ExecStop=/usr/sbin/ovsovn-service-manager.sh STOP
|
||||
|
Binary file not shown.
BIN
files/python3-openvswitch_2.14.0-1_all.deb
Normal file
BIN
files/python3-openvswitch_2.14.0-1_all.deb
Normal file
Binary file not shown.
@ -33,9 +33,9 @@
|
||||
src: "{{item}}"
|
||||
dest: "/tmp/{{item}}"
|
||||
with_items:
|
||||
- libopenvswitch_2.13.0-1_amd64.deb
|
||||
- openvswitch-common_2.13.0-1_amd64.deb
|
||||
- openvswitch-switch_2.13.0-1_amd64.deb
|
||||
- libopenvswitch_2.14.0-1_amd64.deb
|
||||
- openvswitch-common_2.14.0-1_amd64.deb
|
||||
- openvswitch-switch_2.14.0-1_amd64.deb
|
||||
when: force_new_ovs_download == True
|
||||
|
||||
|
||||
@ -45,9 +45,9 @@
|
||||
apt:
|
||||
deb: "{{ item }}"
|
||||
with_items:
|
||||
- "/tmp/libopenvswitch_2.13.0-1_amd64.deb"
|
||||
- "/tmp/openvswitch-common_2.13.0-1_amd64.deb"
|
||||
- "/tmp/openvswitch-switch_2.13.0-1_amd64.deb"
|
||||
- "/tmp/libopenvswitch_2.14.0-1_amd64.deb"
|
||||
- "/tmp/openvswitch-common_2.14.0-1_amd64.deb"
|
||||
- "/tmp/openvswitch-switch_2.14.0-1_amd64.deb"
|
||||
when: force_new_ovs_download == True
|
||||
|
||||
|
||||
@ -95,18 +95,23 @@
|
||||
src: "{{item}}"
|
||||
dest: "/tmp/{{item}}"
|
||||
with_items:
|
||||
- ovn_20.06.0-1_amd64.deb
|
||||
- ovn_20.09.0-1_amd64.deb
|
||||
when: force_new_ovn_download == True
|
||||
|
||||
- name: "Install packages"
|
||||
apt:
|
||||
deb: "{{ item }}"
|
||||
with_items:
|
||||
- "/tmp/ovn_20.06.0-1_amd64.deb"
|
||||
- "/tmp/ovn_20.09.0-1_amd64.deb"
|
||||
when: force_new_ovn_download == True
|
||||
|
||||
- set_fact: ovn_sb_group_name_rendered="{{hostvars[ansible_hostname].ovn_sb_db_group}}"
|
||||
tags: service
|
||||
|
||||
|
||||
- name: Generate OVN SB Connection fact
|
||||
set_fact: OVN_SB_Connection="{% for host in groups[ovn_sb_group_name_rendered] %}tcp:{{ hostvars[host].host_loopback_IP }}:6642{% if not loop.last %},{% endif %}{% endfor %}"
|
||||
tags: service
|
||||
|
||||
#Install the custom service to start OVS and OVN as required
|
||||
- name: "Copy /usr/sbin/ovsovn-service-manager.sh file"
|
||||
template:
|
||||
|
@ -8,9 +8,9 @@ echo "ZZZ $1"
|
||||
|
||||
START(){
|
||||
hostname=$(hostname)
|
||||
loopbackIP={{this_host_ip_rendered}}
|
||||
controllerIP={{OVN_VIP}}
|
||||
echo "Starting OpenVSwitch and OVN on $hostname with $loopbackIP and pointing to OVN controller $controllerIP"
|
||||
loopbackIP={{host_loopback_IP}}
|
||||
|
||||
echo "Starting OpenVSwitch and OVN on $hostname with $loopbackIP and pointing to OVN controller {{OVN_SB_Connection}}"
|
||||
|
||||
DIR="/var/run/openvswitch/db.sock"
|
||||
if [ -d "$DIR" ]; then
|
||||
@ -21,9 +21,10 @@ START(){
|
||||
/usr/share/openvswitch/scripts/ovs-ctl start --system-id=$hostname
|
||||
#Instruct OVSDB to listen on 127.0.0.2:6640 so the ovs-vsctl command from within a container can access OpenVswitch
|
||||
ovs-appctl -t ovsdb-server ovsdb-server/add-remote ptcp:6640
|
||||
|
||||
ovs-vsctl del-br br-int
|
||||
|
||||
ovs-vsctl set open . external-ids:ovn-bridge=br-int
|
||||
ovs-vsctl set open . external-ids:ovn-remote=tcp:$controllerIP:6642
|
||||
ovs-vsctl set open . external-ids:ovn-remote={{OVN_SB_Connection}}
|
||||
ovs-vsctl set open . external-ids:ovn-encap-type=geneve
|
||||
ovs-vsctl set open . external-ids:ovn-encap-ip=$loopbackIP
|
||||
/usr/share/ovn/scripts/ovn-ctl start_controller
|
||||
|
Loading…
x
Reference in New Issue
Block a user