]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding and using snippets/tpl.250.pkgs-centos8.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Jun 2020 13:26:40 +0000 (15:26 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Jun 2020 13:26:40 +0000 (15:26 +0200)
kickstart/template-centos8.ks
snippets/tpl.250.pkgs-centos8.sh [new file with mode: 0644]

index 4e65be04da7a69515e56d4e00629b13c167da9de..f6b82944e7de8eea5e7418daa81db7c629262c97 100644 (file)
@@ -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 (file)
index 0000000..a635bb1
--- /dev/null
@@ -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