Fix userdata template - 3

This commit is contained in:
Neill Cox 2023-09-25 10:48:04 +10:00
parent be22af059c
commit 3d938e3371

View file

@ -13,7 +13,7 @@ bootcmd:
- "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 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}" - "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}"
runcmd: runcmd:
- "subscription-manager register --username {data.rhn_username} --password '{data.rhn_password}'" - "subscription-manager register --username {data.rhn_user} --password '{data.rhn_password}'"
- "subscription-manager release --set=8.4" - "subscription-manager release --set=8.4"
- "dnf install -y dnf-utils" - "dnf install -y dnf-utils"
- "subscription-manager repos --disable=*" - "subscription-manager repos --disable=*"