openqa-a64-worker04: add dhcp and host vars

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi
2025-07-30 19:18:18 -07:00
parent a8711c244c
commit c48af3dad4
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
---
bondbr0_ipv4: 10.16.174.64
bondbr0_ipv4_gw: 10.16.174.254
bondbr0_ipv4_nm: 24
bondbr0_port0_mac: "{{ mac1 }}"
datacenter: rdu3
dns1: 10.16.163.33
dns_search1: "rdu3.fedoraproject.org"
dns_search2: "fedoraproject.org"
freezes: false
has_ipv4: yes
mac0: d8:5e:d3:8b:5d:28
mac1: d8:5e:d3:8b:5d:29
mac2: b8:ce:f6:04:74:d8
mac3: b8:ce:f6:04:74:d9
# NOTE network configuration beyond the scope of linux-system-roles on
# this host is performed by the openqa/worker role
network_connections:
# Bridge profile
- name: bondbr0
state: up
type: bridge
mtu: 1500
autoconnect: yes
ip:
address:
- "{{ bondbr0_ipv4 }}/{{ bondbr0_ipv4_nm }}"
dhcp4: no
dns:
- "{{ dns1 }}"
dns_search:
- "{{ dns_search1 }}"
- "{{ dns_search2 }}"
gateway4: "{{ bondbr0_ipv4_gw }}"
# Bond profile
- name: bond0
type: bond
interface_name: bond0
mtu: 1500
controller: bondbr0
bond:
mode: 802.3ad
# Port profile for the 1st Ethernet device
- name: bond0-port1
mac: "{{ mac2 }}"
type: ethernet
controller: bond0
state: up
mtu: 1500
# Port profile for the 2nd Ethernet device
- name: bond0-port2
mac: "{{ mac3 }}"
type: ethernet
controller: bond0
state: up
mtu: 1500
nrpe_procs_crit: 1600
nrpe_procs_warn: 1400
# Has a hardware RNG
openqa_rngd: true
openqa_tap_iface: bondbr0
# this is a very powerful machine, can handle so many openQA workers
openqa_workers: 60
# also means we need to bump the load average threshold
openqa_critical_threshold: 120
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
# firewall ports for server->worker websockets connections
# this port is 'QEMUPORT plus 1'
# QEMUPORT is:
# $ENV{QEMUPORT} = ($options{instance}) * 10 + 20002;
# so for worker 1 it's 20012, for worker 2 it's 20022, etc etc
tcp_ports: ['20013', '20023', '20033', '20043', '20053', '20063', '20073', '20083', '20093', '20103', '20113', '20123', '20133', '20143', '20153', '20163', '20173', '20183', '20193', '20203', '20213', '20223', '20233', '20243', '20253', '20263', '20273', '20283', '20293', '20303', '20313', '20323', '20333', '20343', '20353', '20363', '20373', '20383', '20393', '20403', '20413', '20423', '20433', '20443', '20453', '20463', '20473', '20483', '20493', '20503', '20513', '20523', '20533', '20543', '20553', '20563', '20573', '20583', '20593', '20603']

View File

@@ -1365,3 +1365,11 @@ host openqa-a64-worker03 {
option routers 10.16.174.254;
option subnet-mask 255.255.255.0;
}
host openqa-a64-worker04 {
hardware ethernet b8:ce:f6:04:74:d9;
fixed-address 10.16.174.64;
next-server 10.16.163.10;
option routers 10.16.174.254;
option subnet-mask 255.255.255.0;
}