@@ -26,7 +26,7 @@ enable_services() {
2626# configure_service_aro_gateway
2727#
2828# args:
29- # 1) image - nameref, string;
29+ # 1) image - nameref, string
3030# * container image
3131# 2) role - nameref, string
3232# * VMSS role
@@ -42,6 +42,7 @@ configure_service_aro_gateway() {
4242 log " starting"
4343 log " Configuring aro-gateway service"
4444
45+ # shellcheck disable=SC2034
4546 local -r aro_gateway_conf_filename=' /etc/sysconfig/aro-gateway'
4647 local -r add_conf_file=" PODMAN_NETWORK='podman'
4748IPADDRESS='$ipaddress '
@@ -55,6 +56,7 @@ ARO_LOG_LEVEL='$GATEWAYLOGLEVEL'"
5556 local -r aro_gateway_service_filename=' /etc/systemd/system/aro-gateway.service'
5657
5758 # shellcheck disable=SC2034
59+ # shellcheck disable=SC2016
5860 # below variable is in single quotes
5961 # as it is to be expanded at systemd start time (by systemd, not this script)
6062 local -r aro_gateway_service_file=' [Unit]
@@ -391,7 +393,10 @@ configure_service_aro_mimo_actuator() {
391393 log " starting"
392394 log " Configuring aro-mimo-actuator service"
393395
396+ # shellcheck disable=SC2034
394397 local -r aro_mimo_actuator_conf_filename=' /etc/sysconfig/aro-mimo-actuator'
398+
399+ # shellcheck disable=SC2034
395400 local -r add_conf_file=" PODMAN_NETWORK='podman'
396401IPADDRESS='$ipaddress '
397402ARO_LOG_LEVEL='$MIMOACTUATORLOGLEVEL '"
@@ -1088,22 +1093,41 @@ configure_vmss_aro_services() {
10881093 verify_role " $1 "
10891094
10901095 if [ " $r " == " $role_gateway " ]; then
1091- configure_service_aro_gateway " ${images["rp"]} " " $1 " " ${configs["gateway_config"]} " " ${configs["static_ip_address"]} [" gateway" ]"
1096+ configure_service_aro_gateway " ${images["rp"]} " " $1 " " ${configs["gateway_config"]} " " ${configs["static_ip_address"]} [gateway]"
10921097 configure_certs_gateway
10931098 elif [ " $r " == " $role_rp " ]; then
1094- configure_service_aro_rp " ${images["rp"]} " " $1 " " ${configs["rp_config"]} " " ${configs["static_ip_address"]} [" rp" ]"
1095- configure_service_aro_mimo_actuator " ${images["rp"]} " " ${configs["rp_config"]} " " ${configs["static_ip_address"]} [" mimo_actuator" ]"
1096- configure_service_aro_monitor " ${images["rp"]} " " ${configs["static_ip_address"]} [" monitor" ]"
1097- configure_service_aro_portal " ${images["rp"]} " " ${configs["static_ip_address"]} [" portal" ]"
1098- configure_service_aro_mise " ${images["mise"]} " " ${configs["static_ip_address"]} [" mise" ]"
1099- configure_service_aro_otel_collector " ${images["otel"]} " " ${configs["static_ip_address"]} " " ${configs["static_ip_address"]} [" otel_collector" ]"
1099+ configure_service_aro_rp " ${images["rp"]} " \
1100+ " $1 " \
1101+ " ${configs[rp_config]} " \
1102+ " ${configs[static_ip_address]} [rp]"
1103+
1104+ configure_service_aro_mimo_actuator " ${images[rp]} " \
1105+ " ${configs[rp_config]} " \
1106+ " ${configs[static_ip_address]} [mimo_actuator]"
1107+
1108+ configure_service_aro_monitor " ${images[rp]} " " ${configs[static_ip_address]} [monitor]"
1109+
1110+ configure_service_aro_portal " ${images[rp]} " " ${configs[static_ip_address]} [portal]"
1111+
1112+ configure_service_aro_mise " ${images[mise]} " " ${configs[static_ip_address]} [mise]"
1113+
1114+ configure_service_aro_otel_collector " ${images[otel]} " \
1115+ " ${configs[static_ip_address]} " \
1116+ " ${configs["static_ip_address"]} [otel_collector]"
1117+
11001118 configure_certs_rp
11011119 fi
11021120
1103- configure_service_fluentbit " ${configs["fluentbit"]} " " ${images["fluentbit"]} "
1121+ configure_service_fluentbit " ${configs[fluentbit]} " " ${images[fluentbit]} "
1122+
11041123 configure_timers_mdm_mdsd " $1 "
1105- configure_service_mdm " $1 " " ${images["mdm"]} " " ${configs["static_ip_address"]} [" mdm" ]"
1106- configure_service_mdsd " $1 " " ${configs["mdsd"]} "
1124+
1125+ configure_service_mdm " $1 " \
1126+ " ${images[mdm]} " \
1127+ " ${configs["static_ip_address"]} [mdm]"
1128+
1129+ configure_service_mdsd " $1 " " ${configs[mdsd]} "
1130+
11071131 run_azsecd_config_scan
11081132}
11091133
0 commit comments