Initial support for restricting IDH services on MGT IP

This commit is contained in:
Josh Brower
2022-04-06 17:16:38 -04:00
parent 7906c053b1
commit f5e539a05c
3 changed files with 24 additions and 4 deletions

View File

@@ -435,6 +435,13 @@ collect_hostname_validate() {
done
}
collect_idh_preferences() {
IDHMGTRESTRICT='False'
whiptail_idh_preferences
if [[ "$idh_preferences" != "" ]]; then IDHMGTRESTRICT='True'; fi
}
collect_idh_services() {
whiptail_idh_services
@@ -2867,6 +2874,7 @@ write_out_idh_services() {
printf '%s\n'\
"idh:"\
" restrict_management_ip: $IDHMGTRESTRICT"\
" services:" >> "$pillar_file"
for service in ${idh_services[@]}; do
echo " - $service" | tr '[:upper:]' '[:lower:]' >> "$pillar_file"