openqa/worker: initial attempt at openvswitch config
this is highly experimental and for deployment only to stg at present...I have this stuff working on happyassassin, now trying to translate it to stg.
This commit is contained in:
parent
63a72008ff
commit
48291f1640
3 changed files with 40 additions and 0 deletions
10
roles/openqa/worker/files/ifcfg-br0
Normal file
10
roles/openqa/worker/files/ifcfg-br0
Normal file
|
@ -0,0 +1,10 @@
|
|||
DEVICETYPE='ovs'
|
||||
TYPE='OVSBridge'
|
||||
BOOTPROTO='static'
|
||||
IPADDR='10.0.2.2'
|
||||
NETMASK='255.254.0.0'
|
||||
DEVICE=br0
|
||||
STP=off
|
||||
ONBOOT='yes'
|
||||
NAME='br0'
|
||||
HOTPLUG='no'
|
|
@ -11,6 +11,7 @@
|
|||
dnf: name={{ item }} state=present
|
||||
with_items:
|
||||
- openqa-worker
|
||||
- os-autoinst-openvswitch
|
||||
- libselinux-python
|
||||
- edk2.git-ovmf-x64
|
||||
tags:
|
||||
|
@ -29,6 +30,28 @@
|
|||
tags:
|
||||
- config
|
||||
|
||||
- name: openvswitch service
|
||||
service: name=openvswitch enabled=yes state=started
|
||||
with_sequence: "count={{ openqa_workers }}"
|
||||
|
||||
- name: openvswitch bridge device config
|
||||
copy: src=ifcfg-br0 dest=/etc/sysconfig/network-scripts/ifcfg-br0 owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart NetworkManager
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: openvswitch tap devices config
|
||||
template: src=ifcfg-tap dest=/etc/sysconfig/network-scripts/ifcfg-tap{{ item }} owner=root group=root mode=0644
|
||||
with_sequence: start=0 end={{ openqa_workers | int }}
|
||||
notify:
|
||||
- restart NetworkManager
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: os-autoinst openvswitch service
|
||||
service: name=os-autoinst-openvswitch enabled=yes state=started
|
||||
|
||||
- name: Worker services
|
||||
service: name=openqa-worker@{{ item }} enabled=yes state=started
|
||||
with_sequence: "count={{ openqa_workers }}"
|
||||
|
|
7
roles/openqa/worker/templates/ifcfg-tap
Normal file
7
roles/openqa/worker/templates/ifcfg-tap
Normal file
|
@ -0,0 +1,7 @@
|
|||
DEVICETYPE='ovs'
|
||||
TYPE='OVSPort'
|
||||
OVS_BRIDGE='br0'
|
||||
DEVICE='tap{{ item }}'
|
||||
ONBOOT='yes'
|
||||
BOOTPROTO='none'
|
||||
HOTPLUG='no'
|
Loading…
Add table
Add a link
Reference in a new issue