From 58f3e7389e243228e0d32f95d39766b46a3f5451 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 17 Aug 2023 09:34:54 +0200 Subject: [PATCH] Cosmetic changes --- kickstart/profile.rhel-9.2.develop.ks | 50 +++++---------------------- snippets/tpl.250.pkgs-el7.sh | 39 --------------------- 2 files changed, 9 insertions(+), 80 deletions(-) delete mode 100644 snippets/tpl.250.pkgs-el7.sh diff --git a/kickstart/profile.rhel-9.2.develop.ks b/kickstart/profile.rhel-9.2.develop.ks index 262d158..847ff42 100644 --- a/kickstart/profile.rhel-9.2.develop.ks +++ b/kickstart/profile.rhel-9.2.develop.ks @@ -5,38 +5,6 @@ # Standard Pixelpark Installation of rhel-9.2 templates. # -# lang en_US -# keyboard --xlayouts='de(nodeadkeys)' -# timezone Europe/Berlin --utc -# rootpw $2b$10$BOX9s/mftn9mQwhFQ2bo2ucXnvYSQ7sOKk5wna7E0eMj40hFd.rx6 --iscrypted -# text -# url --url=https://test-cobbler01.pixelpark.com/cobbler/distro_mirror/RHEL-9.2/BaseOS -# bootloader --append="rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M" -# zerombr -# clearpart --all --initlabel -# volgroup vgroot --pesize=4096 pv.0 -# part pv.0 --fstype=lvmpv --ondisk=sdb --size=20480 -# part /boot --fstype=ext4 --ondisk=sda --size=512 --asprimary -# logvol / --vgname=vgroot --name=root --fstype=xfs --size=6144 -# logvol /var --vgname=vgroot --name=var --fstype=xfs --size=1 --grow --maxsize=20480 -# logvol /home --vgname=vgroot --name=home --fstype=xfs --size=1024 -# logvol swap --vgname=vgroot --name=swap --fstype=swap --size=1024 -# logvol /opt --vgname=vgroot --name=opt --fstype=xfs --size=2048 -# network --bootproto=dhcp -# skipx -# firstboot --disable -# selinux --permissive -# %pre --interpreter=/bin/bash -# echo "Hier get's los ..." -# %end -# %post --interpreter=/bin/bash -# echo "Und hier endet es." -# %end -# %packages -# @^minimal-environment -# kexec-tools -# %end - # Firewall configuration firewall --disabled @@ -219,15 +187,15 @@ if [[ -d "/etc/yum.repos.d" ]] ; then echo "/etc/yum.repos.d/" ls -lA /etc/yum.repos.d -# for repo_file in /etc/yum.repos.d/*.repo ; do -# if [[ -f "${repo_file}" ]] ; then -# echo -# echo "${repo_file}" -# echo '---' -# cat "${repo_file}" -# echo '---' -# fi -# done + for repo_file in /etc/yum.repos.d/*.repo ; do + if [[ -f "${repo_file}" ]] ; then + echo + echo "${repo_file}" + echo '---' + cat "${repo_file}" + echo '---' + fi + done fi diff --git a/snippets/tpl.250.pkgs-el7.sh b/snippets/tpl.250.pkgs-el7.sh deleted file mode 100644 index dd10052..0000000 --- a/snippets/tpl.250.pkgs-el7.sh +++ /dev/null @@ -1,39 +0,0 @@ -## !/bin/bash -#raw - -#----------------------------------------------------------- -install_pkgs_el7() { - - echo -e "\e[0Ksection_start:$( date +%s ):ks_install_pkgs_el7[collapsed=true]\r\e[0KInstalling additional packages ..." - echo - echo "${HASH_LINE}" - echo "Calling install_pkgs_el7() ..." - echo - echo - log "Installing additional packages ..." - echo - - local -a pkgs_add=('colordiff' 'git' 'p7zip' 'screen') - local -a pkgs_remove=('nfs*' 'rpcbind') - - echo "Installing packages: ${pkgs_add[*]}" - yum install -y "${pkgs_add[@]}" - - echo - echo "Removing packages: ${pkgs_remove[*]}" - yum remove -y "${pkgs_remove[@]}" - - echo - echo "Creating /etc/gitconfig ..." - cat <<-EOF >/etc/gitconfig - [color] - ui = true - EOF - - echo -e "\e[0Ksection_end:$( date +%s ):ks_install_pkgs_el7\r\e[0K" -} - -install_pkgs_el7 - -#end raw -## vim: ts=4 et list -- 2.39.5