From 492e2d3959234b43fe6217f05ff03a74cd6b82e3 Mon Sep 17 00:00:00 2001 From: Neill Cox Date: Mon, 25 Sep 2023 18:50:00 +1000 Subject: [PATCH] Another network config attempt - 2 --- src/virt-install/user-data.tpl | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/virt-install/user-data.tpl b/src/virt-install/user-data.tpl index 4df6ea1..763c214 100644 --- a/src/virt-install/user-data.tpl +++ b/src/virt-install/user-data.tpl @@ -12,23 +12,6 @@ ssh_authorized_keys: # - "nmcli conn delete 'Wired connection 1'" # - "nmcli con add con-name eth0 ifname eth0 type ethernet ip4 {data.cidr_1} gw4 {data.gateway} ipv4.dns {data.dns}" # - "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}" -runcmd: - - "subscription-manager register --username {data.rhn_user} --password '{data.rhn_password}'" - - "subscription-manager release --set=8.4" - - "dnf install -y dnf-utils" - - "subscription-manager repos --disable=*" - - "subscription-manager repos --enable=rhel-8-for-x86_64-baseos-eus-rpms --enable=rhel-8-for-x86_64-appstream-eus-rpms --enable=rhel-8-for-x86_64-highavailability-eus-rpms --enable=ansible-2.9-for-rhel-8-x86_64-rpms --enable=openstack-16.2-for-rhel-8-x86_64-rpms --enable=fast-datapath-for-rhel-8-x86_64-rpms" - - "dnf module disable -y container-tools:rhel8" - - "dnf module enable -y container-tools:3.0" - - "dnf update -y" - - "echo ***************************************************************************" - - "echo *** ***" - - "echo *** ***" - - "echo *** DNF UPDATE COMPLETE - REBOOT NOW ***" - - "echo *** ***" - - "echo *** ***" - - "echo ***************************************************************************" - - "reboot" network: version: 1 config: @@ -46,4 +29,21 @@ network: address: {data.cidr_2} gateway: {data.gateway} dns: {data.dns} +# runcmd: +# - "subscription-manager register --username {data.rhn_user} --password '{data.rhn_password}'" +# - "subscription-manager release --set=8.4" +# - "dnf install -y dnf-utils" +# - "subscription-manager repos --disable=*" +# - "subscription-manager repos --enable=rhel-8-for-x86_64-baseos-eus-rpms --enable=rhel-8-for-x86_64-appstream-eus-rpms --enable=rhel-8-for-x86_64-highavailability-eus-rpms --enable=ansible-2.9-for-rhel-8-x86_64-rpms --enable=openstack-16.2-for-rhel-8-x86_64-rpms --enable=fast-datapath-for-rhel-8-x86_64-rpms" +# - "dnf module disable -y container-tools:rhel8" +# - "dnf module enable -y container-tools:3.0" +# - "dnf update -y" +# - "echo '***************************************************************************'" +# - "echo '*** ***'" +# - "echo '*** ***'" +# - "'echo *** DNF UPDATE COMPLETE - REBOOT NOW ***'" +# - "echo '*** ***'" +# - "echo '*** ***'" +# - "echo '***************************************************************************'" +# - "reboot"