Nice! I have done something similar; https://github.com/d0ugal/shack/tree/master/roles/maas/templates - I have not really documented it as it is just for my use, but I added a quick README now and you might something useful there. I’ll check yours out!
I also wrote a similar post to this one a while back. My scripts are based on it; Create a Virtual MAAS Test Environment