]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding and using snippets/tpl.350.legato.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 19 Jun 2020 09:02:37 +0000 (11:02 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 19 Jun 2020 09:02:37 +0000 (11:02 +0200)
kickstart/template-centos8.ks
snippets/tpl.350.legato.sh [new file with mode: 0644]

index 49f672d51e9c33faae54bdbbee21c68b92c0008c..5218ade28a453197323bcd581c95e4d2a806c8b3 100644 (file)
@@ -217,6 +217,11 @@ echo
 echo "Using snippet $create_motd_snippet"
 $SNIPPET($create_motd_snippet)
 
+#set $legato_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.350.legato.sh"
+echo
+echo "Using snippet $legato_snippet"
+$SNIPPET($legato_snippet)
+
 
 
 
diff --git a/snippets/tpl.350.legato.sh b/snippets/tpl.350.legato.sh
new file mode 100644 (file)
index 0000000..b9533f4
--- /dev/null
@@ -0,0 +1,39 @@
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+install_legato() {
+
+    echo
+    echo "${HASH_LINE}"
+    echo "Calling install_legato() ..."
+    echo
+    echo
+    log "Installing Legato networker client packages (backup) ..."
+    echo
+
+    local url_client="${COBBLER_URL}/custom/legato/lgtoclnt-latest.x86_64.rpm"
+    local url_man="${COBBLER_URL}/custom/legato/lgtoman-latest.x86_64.rpm"
+
+    echo "Installing from URL '${url_client}' ..."
+    if yum install -y "${url_client}" ; then
+        :
+    else
+        echo "[$(date)]: Could not install from ${url_client}" | tee -a "${ERROR_POINTER}"
+    fi
+    echo "Installing from URL '${url_man}' ..."
+    if yum install -y "${url_man}" ; then
+        :
+    else
+        echo "[$(date)]: Could not install from ${url_man}" | tee -a "${ERROR_POINTER}"
+    fi
+
+    mkdir -pv /nsr/res
+    echo "legato01.pixelpark.com" > /nsr/res/servers
+
+}
+
+install_legato
+
+#end raw
+## vim: ts=4 et list