Another network config attempt - 6

This commit is contained in:
Neill Cox 2023-09-25 20:16:12 +10:00
parent d9329734b3
commit 9228b3df09
2 changed files with 2 additions and 1 deletions

View file

@ -109,6 +109,7 @@ def create_image(args):
if args.verbose: if args.verbose:
print(result) print(result)
print("Image resized")
def virt_install_cmd(args): def virt_install_cmd(args):
"""Build and execute the virt-install command""" """Build and execute the virt-install command"""

View file

@ -12,7 +12,7 @@ bootcmd:
- "nmcli con modify 'Wired connection 1' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" - "nmcli con modify 'Wired connection 1' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"
- "nmcli networking off" - "nmcli networking off"
- "nmcli networking on" - "nmcli networking on"
- "service sshd restart" # - "service sshd restart"
# 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"