From 2a944bd597b4f9e90eeae11918c1e855ef93cab7 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Tue, 31 Aug 2021 04:17:59 +0700 Subject: [PATCH] Fix incorrect installer address --- metal/roles/pxe-server/files/tftp/grub.cfg | 1 - metal/roles/pxe-server/templates/grub.cfg.j2 | 1 - metal/roles/pxe-server/templates/kickstart.ks.j2 | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/metal/roles/pxe-server/files/tftp/grub.cfg b/metal/roles/pxe-server/files/tftp/grub.cfg index 40e1a42b..d9ae55fa 100644 --- a/metal/roles/pxe-server/files/tftp/grub.cfg +++ b/metal/roles/pxe-server/files/tftp/grub.cfg @@ -3,7 +3,6 @@ set timeout=1 menuentry 'Rocky-8.4-x86_64-minimal (PXE)' { linux vmlinuz \ ip=dhcp \ - inst.repo=http://192.168.1.12/os \ ks=http://192.168.1.12/init-config/${net_default_mac}.ks initrd initrd.img } diff --git a/metal/roles/pxe-server/templates/grub.cfg.j2 b/metal/roles/pxe-server/templates/grub.cfg.j2 index 5e9f4991..bbd3c977 100644 --- a/metal/roles/pxe-server/templates/grub.cfg.j2 +++ b/metal/roles/pxe-server/templates/grub.cfg.j2 @@ -3,7 +3,6 @@ set timeout=1 menuentry '{{ iso_url | basename | splitext | first }} (PXE)' { linux vmlinuz \ ip=dhcp \ - inst.repo=http://{{ ansible_default_ipv4.address }}/os \ ks=http://{{ ansible_default_ipv4.address }}/init-config/${net_default_mac}.ks initrd initrd.img } diff --git a/metal/roles/pxe-server/templates/kickstart.ks.j2 b/metal/roles/pxe-server/templates/kickstart.ks.j2 index be03a5a4..6c413349 100644 --- a/metal/roles/pxe-server/templates/kickstart.ks.j2 +++ b/metal/roles/pxe-server/templates/kickstart.ks.j2 @@ -15,11 +15,11 @@ ignoredisk --only-use={{ disk }} autopart # Network information -network --bootproto=static --device={{ network_interface }} --ip={{ ansible_host }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate +network --bootproto=static --device={{ network_interface }} --ip={{ hostvars[item]['ansible_host'] }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate # Use network installation repo --name="Minimal" --baseurl=http://{{ ansible_default_ipv4.address }}/os/Minimal -url --url="http://{{ ansible_default_ipv4.address }}/iso/" +url --url="http://{{ ansible_default_ipv4.address }}/os" # Disable Setup Agent on first boot firstboot --disable # Do not configure the X Window System