Force automatic tags to apply?

Hi

this might be a no-brainer, but is there a way to manually kick of (or even monitor) the process that does the automatic tagging?

The doc sais

Once an automatic tag is created the screen will initially show that 0 machines are tagged. That is because MAAS is running a background task to auto-apply the tag to matching machines. It can take some time to see that the number of machines tagged is populating.

But I see no way to monitor/supervise/ensure that…

Hi @score ,

nope, it’s not possible atm

So I dug around a bit and came up with the following

for TAG in $(maas $PROFILE tags read | jq -r '.[] | select(.definition != "") | .name' ); do 
  maas $PROFILE tag rebuild $TAG
done

Maybe that helps someone :slight_smile:

1 Like