From: Frank Brehm Date: Wed, 17 Jun 2020 13:26:40 +0000 (+0200) Subject: Adding and using snippets/tpl.250.pkgs-centos8.sh X-Git-Tag: 2.1.2^2~9^2~31^2~26 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=c2008e51efe3ac879fdd46be17db798c74240dba;p=pixelpark%2Fcreate-vmware-tpl.git Adding and using snippets/tpl.250.pkgs-centos8.sh --- diff --git a/kickstart/template-centos8.ks b/kickstart/template-centos8.ks index 4e65be0..f6b8294 100644 --- a/kickstart/template-centos8.ks +++ b/kickstart/template-centos8.ks @@ -200,6 +200,10 @@ echo echo "Using snippet $bashrc_snippet" $SNIPPET($bashrc_snippet) +#set $pkgs_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.250.pkgs-centos8.sh" +echo +echo "Using snippet $pkgs_snippet" +$SNIPPET($pkgs_snippet) diff --git a/snippets/tpl.250.pkgs-centos8.sh b/snippets/tpl.250.pkgs-centos8.sh new file mode 100644 index 0000000..a635bb1 --- /dev/null +++ b/snippets/tpl.250.pkgs-centos8.sh @@ -0,0 +1,36 @@ +## !/bin/bash +#raw + +#----------------------------------------------------------- +install_pkgs_centos8() { + + echo + echo "${HASH_LINE}" + echo "Calling install_pkgs_centos8() ..." + echo + echo + log "Installing additional packages ..." + echo + + local -a pkgs_add=('colordiff' 'p7zip' 'screen' 'NetworkManager-config-server') + 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 +} + +install_pkgs_centos8 + +#end raw +## vim: ts=4 et list