We had the same quest of automating IPS updates with R80.10.
So i wrote a small script to do the reassignment of the Global Domain to all Domains which can be run every night by cron. As a drawback the name of the Global Domain is hard coded in the script, which is fine for us.
Maybe you will find it useful:
#!/bin/sh
#######################################################################################
#
# Reassign the Global Domain to all Domains
#
#######################################################################################
# Name of the Global Domain
GPOL_NAME="Global"
# Temp file for the session-id
ID="/tmp/id-$$.txt"
#######################################################################################
# Login
mgmt_cli login -r true > ${ID}
# Get a list of all Domains
DOMAINS=`mgmt_cli show domains -s ${ID} --format json | jq -r '.objects[].name'`
# Iterate over all Domains
for DOM in ${DOMAINS}; do
if [ -z "`mgmt_cli show domain name ${DOM} --format json -s ${ID} | jq -r '."global-domain-assignments"[]'`" ]; then
echo "Domain \"${DOM}\" has no Global Domain assigned, skipping it."
else
# Reassign
echo "Reassigning Global Domain \"${GPOL_NAME}\" to Domain \"${DOM}\"..."
mgmt_cli assign-global-assignment global-domains ${GPOL_NAME} dependent-domains ${DOM} -s ${ID} --format json 2>/dev/null | jq -r '.tasks[].status'
fi
done
# Logout and delete the session-id
mgmt_cli logout -s ${ID} >/dev/null
rm -f ${ID}