@@ -23,8 +23,6 @@ readonly SCRIPT_VERSION='SCRIPT_VERSION_REPLACE'
2323
2424# definitions
2525
26- # # DGM CURL_DOWNLOAD_RETRY_COUNT=5
27-
2826# # Repository locations and naming
2927readonly default_salt_url_version=" latest"
3028salt_url_version=" ${default_salt_url_version} "
@@ -427,9 +425,6 @@ _set_log_level() {
427425# Returns with exit code
428426#
429427_get_desired_salt_version_fn () {
430- # DGM debug output
431- set -x
432- set -v
433428
434429 if [[ " $# " -ne 1 ]]; then
435430 _error_log " $0 :${FUNCNAME[0]} error expected one parameter " \
@@ -848,50 +843,6 @@ _fetch_vmtools_salt_minion_conf() {
848843}
849844
850845
851- # # DGM TBD to be removed
852- # # DGM # _curl_download
853- # # DGM #
854- # # DGM # Retrieve file from specified url to specific file
855- # # DGM #
856- # # DGM # Results:
857- # # DGM # Exits with 0 or error code
858- # # DGM #
859- # # DGM
860- # # DGM _curl_download() {
861- # # DGM local file_name="$1"
862- # # DGM local file_url="$2"
863- # # DGM local download_retry_failed=1 # assume issues
864- # # DGM local _retn=0
865- # # DGM
866- # # DGM _info_log "$0:${FUNCNAME[0]} attempting download of file '${file_name}'"
867- # # DGM
868- # # DGM for ((i=0; i<CURL_DOWNLOAD_RETRY_COUNT; i++))
869- # # DGM do
870- # # DGM # ensure minimum version of TLS used is v1.2
871- # # DGM curl -o "${file_name}" --tlsv1.2 -fsSL "${file_url}"
872- # # DGM _retn=$?
873- # # DGM if [[ ${_retn} -ne 0 ]]; then
874- # # DGM _warning_log "$0:${FUNCNAME[0]} failed to download file "\
875- # # DGM "'${file_name}' from '${file_url}' on '${i}' attempt, "\
876- # # DGM "retcode '${_retn}'"
877- # # DGM else
878- # # DGM download_retry_failed=0
879- # # DGM _debug_log "$0:${FUNCNAME[0]} successfully downloaded file "\
880- # # DGM "'${file_name}' from '${file_url}' after '${i}' attempts"
881- # # DGM break
882- # # DGM fi
883- # # DGM done
884- # # DGM if [[ ${download_retry_failed} -ne 0 ]]; then
885- # # DGM _error_log "$0:${FUNCNAME[0]} failed to download file '${file_name}' "\
886- # # DGM "from '${file_url}' after '${CURL_DOWNLOAD_RETRY_COUNT}' attempts"
887- # # DGM fi
888- # # DGM
889- # # DGM _info_log "$0:${FUNCNAME[0]} successfully downloaded file "\
890- # # DGM "'${file_name}' from '${file_url}'"
891- # # DGM return 0
892- # # DGM }
893-
894-
895846#
896847# _fetch_salt_minion
897848#
@@ -909,15 +860,11 @@ _fetch_vmtools_salt_minion_conf() {
909860#
910861
911862_fetch_salt_minion () {
912- # DGM debug output
913- set -x
914- set -v
915863
916864 # fetch the current salt-minion into specified location
917865 # could check if already there but by always getting it
918866 # ensure we are not using stale versions
919867 local _retn=0
920- # # DGM local download_retry_failed=1 # assume issues
921868
922869 local salt_pkg_name=" "
923870 local salt_url=" "
@@ -1775,9 +1722,6 @@ _reconfig_fn () {
17751722#
17761723
17771724_install_fn () {
1778- # DGM debug output
1779- set -x
1780- set -v
17811725
17821726 # execute install of Salt minion
17831727 local _retn=0
0 commit comments