openqa/worker: try setting up GRE tunnels between worker hosts
everyone stand back, this one's gonna go boom.
This commit is contained in:
parent
ab4ec2c779
commit
7a37862fbc
2 changed files with 16 additions and 0 deletions
|
@ -74,6 +74,15 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: openvswitch gre tunnel config
|
||||||
|
template: src=ifcfg-gre.j2 dest=/etc/sysconfig/network-scripts/ifcfg-gre{{ item.0 }} owner=root group=root mode=0644
|
||||||
|
with_indexed_items: "{{ groups.openqa-workers|difference([inventory_hostname]) }}"
|
||||||
|
when: deployment_type == 'prod'
|
||||||
|
notify:
|
||||||
|
- restart network
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Install ifup-pre-local script to create tap devices
|
- name: Install ifup-pre-local script to create tap devices
|
||||||
copy: src=ifup-pre-local dest=/sbin/ifup-pre-local owner=root group=root mode=0755
|
copy: src=ifup-pre-local dest=/sbin/ifup-pre-local owner=root group=root mode=0755
|
||||||
|
|
||||||
|
|
7
roles/openqa/worker/templates/ifcfg-gre.j2
Normal file
7
roles/openqa/worker/templates/ifcfg-gre.j2
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
DEVICETYPE='ovs'
|
||||||
|
TYPE='OVSTunnel'
|
||||||
|
OVS_BRIDGE='br0'
|
||||||
|
DEVICE='gre{{ item.0 }}'
|
||||||
|
OVS_TUNNEL_TYPE='gre'
|
||||||
|
OVS_TUNNEL_OPTIONS="options:remote_ip={{ hostvars[item.1][eth0_ip] }}'
|
||||||
|
ONBOOT='yes'
|
Loading…
Add table
Add a link
Reference in a new issue