IDH - setup tweaks

This commit is contained in:
Josh Brower
2022-02-19 12:28:45 -05:00
parent bf477a1c19
commit 780cd38adf
3 changed files with 47 additions and 22 deletions

View File

@@ -450,11 +450,21 @@ collect_hostname_validate() {
collect_idh_services() {
whiptail_idh_services
if [ $idh_services == "Custom"; ] then
whiptail_idh_services_custom
fi
echo $idh_services
case "$idh_services" in
'Linux Webserver')
idh_services=("HTTP" "FTP" "SSH")
;;
'MySQL Server')
idh_services=("MYSQL" "SSH")
;;
'MSSQL Server')
idh_services=("MSSQL" "VNC")
;;
'Custom')
whiptail_idh_services_custom
echo $idh_services
;;
esac
}
collect_int_ip_mask() {
@@ -2839,6 +2849,16 @@ wait_for_salt_minion() {
retry 60 5 "journalctl -u salt-minion.service | grep 'Minion is ready to receive requests'" >> "$setup_log" 2>&1 || exit 1
}
write_out_idh_services() {
printf '%s\n'\
"idh:"\
" opencanary:"\
" config:" >> "$minion_config"
for service in ${idh_services[@]}; do
echo " - $service" >> "$minion_config"
done
}
# Enable Zeek Logs
zeek_logs_enabled() {
echo "Enabling Zeek Logs" >> "$setup_log" 2>&1