kickstarts: some misc improvements

Move the vnc password into ansible-private and change it
Set post script to pull via https instead of http.
http gets redirected and curl doesn't follow the redirect by default.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-05-29 13:29:57 -07:00
parent cf68c038f5
commit ed701ebbf3
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
vnc --password install
vnc --password "{{ kickstart_vnc_password }}"
# Use network install
url --url=https://infrastructure.fedoraproject.org/repo/rhel/RHEL9-x86_64/
repo --name=epel --baseurl=https://infrastructure.fedoraproject.org/pub/epel/9/Everything/x86_64/
@ -104,6 +104,6 @@ zsh
%post --nochroot --log=/mnt/sysimage/root/post.output --erroronfail
mkdir /mnt/sysimage/root/tmp
chroot /mnt/sysimage /usr/bin/curl http://infrastructure.fedoraproject.org/rhel/ks/post/rhel9-post.sh -o /root/tmp/rhel9-post.sh
chroot /mnt/sysimage /usr/bin/curl https://infrastructure.fedoraproject.org/rhel/ks/post/rhel9-post.sh -o /root/tmp/rhel9-post.sh
chroot /mnt/sysimage sh /root/tmp/rhel9-post.sh
%end

View file

@ -5,7 +5,7 @@
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
vnc --password install
vnc --password "{{ kickstart_vnc_password }}"
# Use network install
url --url=http://infrastructure.fedoraproject.org/repo/rhel/RHEL9-x86_64/
repo --name=epel --baseurl=http://infrastructure.fedoraproject.org/pub/epel/9/Everything/x86_64/
@ -113,6 +113,6 @@ zsh
%post --nochroot --log=/mnt/sysimage/root/post.output --erroronfail
mkdir /mnt/sysimage/root/tmp
chroot /mnt/sysimage /usr/bin/curl http://infrastructure.fedoraproject.org/rhel/ks/post/rhel9-post.sh -o /root/tmp/rhel9-post.sh
chroot /mnt/sysimage /usr/bin/curl https://infrastructure.fedoraproject.org/rhel/ks/post/rhel9-post.sh -o /root/tmp/rhel9-post.sh
chroot /mnt/sysimage sh /root/tmp/rhel9-post.sh
%end