Make test ping retry

This commit is contained in:
Mike Reeves
2022-09-15 17:01:53 -04:00
parent e6c0c2ce19
commit c50a1608af
2 changed files with 4 additions and 2 deletions

View File

@@ -209,10 +209,12 @@ function createIDHNODE() {
} }
function testConnection() { function testConnection() {
salt "$MINION_ID" test.ping retry 5 10 "salt '$MINION_ID' test.ping" 0
local ret=$? local ret=$?
if [[ $ret != 0 ]]; then if [[ $ret != 0 ]]; then
echo "The Minion has been accepted but is not online. Try again later" echo "The Minion has been accepted but is not online. Try again later"
echo "Deleting the key"
deleteminion
exit 1 exit 1
fi fi
} }

View File

@@ -1810,7 +1810,7 @@ drop_install_options() {
# Drop the install Variable # Drop the install Variable
echo "MAINIP=$MAINIP" > /opt/so/install.txt echo "MAINIP=$MAINIP" > /opt/so/install.txt
echo "MNIC=$MNIC" >> /opt/so/install.txt echo "MNIC=$MNIC" >> /opt/so/install.txt
echo "NODE_DESCRIPTION=$NODE_DESCRIPTION" >> /opt/so/install.txt echo "NODE_DESCRIPTION='$NODE_DESCRIPTION'" >> /opt/so/install.txt
echo "ES_HEAP_SIZE=$ES_HEAP_SIZE" >> /opt/so/install.txt echo "ES_HEAP_SIZE=$ES_HEAP_SIZE" >> /opt/so/install.txt
echo "PATCHSCHEDULENAME=$PATCHSCHEDULENAME" >> /opt/so/install.txt echo "PATCHSCHEDULENAME=$PATCHSCHEDULENAME" >> /opt/so/install.txt
echo "INTERFACE=$INTERFACE" >> /opt/so/install.txt echo "INTERFACE=$INTERFACE" >> /opt/so/install.txt