From 584ca1bd2fcf68c468b848ed788fe962cb268557 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 3 Jul 2023 21:24:46 -0500 Subject: [PATCH] Update defaults.inc --- defaults.inc | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/defaults.inc b/defaults.inc index 62048c06..e6261f00 100755 --- a/defaults.inc +++ b/defaults.inc @@ -23,17 +23,6 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then IFS=, - MYSQL_HOSTS=(${MYSQLHOSTS}) - WEB_HOSTS=(${WEBHOSTS}) - LB_HOSTS=(${LBHOSTS}) - NC_HOSTS=(${NCHOSTS}) - WPD_HOSTS=(${WPDHOSTS}) - LPD_HOSTS=(${LPDHOSTS}) - MM_HOSTS=(${MMHOSTS}) - GL_HOSTS=(${GLHOSTS}) - PW_HOSTS=(${PWHOSTS}) - WM_HOSTS=(${WMHOSTS}) - MYSQL_SERVICES_CHECK=(${MYSQLSERVICES_CHECK}) WEB_SERVICES_CHECK=(${WEBSERVICES_CHECK}) LB_SERVICES_CHECK=(${LBSERVICES_CHECK}) @@ -59,10 +48,10 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then done for ntype in "${NODE_TYPES[@]}"; do - arr NM_HOSTS_${ntype} + arr ${ntype}_HOSTS var=(${NM_HOSTS[${ntype}]}) for host in "${var[@]}"; do - arr_insert NM_HOSTS_${ntype} $host + arr_insert ${ntype}_HOSTS $host done done @@ -71,8 +60,8 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then fi echo "HERE: " -# arr_get NM_HOSTS_${ntype} -for test in "${NM_HOSTS_MYSQL[@]}"; do +# arr_get ${ntype}_HOSTS +for test in "${MYSQL_HOSTS[@]}"; do echo $test done