Dnf #1

Merged
neillc merged 20 commits from dnf into master 2023-09-28 10:34:16 +10:00
Showing only changes of commit 2d886a4567 - Show all commits

View file

@ -1,22 +1,5 @@
#cloud-config #cloud-config
system_info: system_info:
network:
version: 1
config:
- type: physical
name: eth0
subnets:
- type: static
address: {data.cidr_1}
gateway: {data.gateway}
dns: {data.dns}
- type: physical
name: eth1
subnets:
- type: static
address: {data.cidr_2}
gateway: {data.gateway}
dns: {data.dns}
default_user: default_user:
name: stack name: stack
password: {data.password} password: {data.password}
@ -24,11 +7,11 @@ chpasswd: {{expire: False}}
ssh_pwauth: True ssh_pwauth: True
ssh_authorized_keys: ssh_authorized_keys:
- {data.public_key} - {data.public_key}
# bootcmd: bootcmd:
# - "nmcli conn delete 'System eth0'" - "nmcli con modify "System eth0" ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"
# - "nmcli conn delete 'Wired connection 1'" - "nmcli con modify "Wired connection 1" ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {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 networking off"
# - "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}" - "nmcli networking on"
# runcmd: # runcmd:
# - "subscription-manager register --username {data.rhn_user} --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"