Skip to content

Commit 9502278

Browse files
committed
Improve multinode
This change includes two improvements to the multinode environment. The first corrects the MTU definition on the external network. The second sets os_release automatically based on the contents of /etc/os-release
1 parent d2c43c7 commit 9502278

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

etc/kayobe/environments/ci-multinode/globals.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5151

5252
# OS release. Valid options are "8-stream" when os_distribution is "centos", or
5353
# "focal" when os_distribution is "ubuntu".
54-
#os_release:
55-
54+
os_release: >-
55+
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
56+
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' else
57+
'stream-8' }}
5658
###############################################################################
5759

5860
# Avoid a reboot.

etc/kayobe/environments/ci-multinode/networks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal_vlan: 101
8181

8282
# External network
8383
external_cidr: 192.168.38.0/24
84-
external_mtu: 1450
84+
external_mtu: "{{ ansible_facts.default_ipv4.mtu - 50 }}"
8585
external_allocation_pool_start: 192.168.38.3
8686
external_allocation_pool_end: 192.168.38.128
8787
external_vlan: 102

0 commit comments

Comments
 (0)