<div dir="ltr"><div>Hi Jim,</div><div><br></div>   I can't think of a supported way to do custom event-driven hooks as you describe, but that sounds like a very useful enhancement.<div><br></div><div>   If you don't want to poll the API, I would suggest monitoring /var/log/maas.log. You'll be able to tell when a machine changes state, such as by looking for the following log messages:</div><div><br></div><div><div>Feb  1 19:09:34 maas maas.node: [info] pxe1: Status transition from NEW to COMMISSIONING</div></div><div><div>Feb  1 19:11:36maas maas.node: [info] pxe1: Status transition from COMMISSIONING to READY</div></div><div><div>Feb  1 19:12:05 maas maas.node: [info] pxe1: Status transition from READY to ALLOCATED</div></div><div><div>Feb  1 19:12:05 maas maas.node: [info] pxe1: Status transition from ALLOCATED to DEPLOYING</div></div><div><div>Feb  1 19:16:05 maas maas.node: [info] pxe1: Status transition from DEPLOYING to DEPLOYED</div></div><div><div>Feb  1 19:16:15 maas maas.node: [info] pxe1: Status transition from DEPLOYED to RELEASING</div></div><div><div>Feb  1 19:16:19 maas maas.node: [info] pxe1: Status transition from RELEASING to READY</div></div><div><br></div><div>Regards,</div><div>Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 9:44 AM, Jim Tilander <span dir="ltr"><<a href="mailto:jim@tilander.org" target="_blank">jim@tilander.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I’ve got puppet hooked up to the images we deploy with maas and need some way to cleanup the nodes that we “release” from puppet. I’m wondering if there are some hooks on the maas server itself that fire when you click “Release” in the webUI, alternatively react to any released node with appropriate metadata so one can perform some cleanup?<br>
<br>
Cheers,<br>
Jim<br>
<span class="HOEnZb"><font color="#888888">--<br>
Maas-devel mailing list<br>
<a href="mailto:Maas-devel@lists.ubuntu.com">Maas-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/maas-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/maas-devel</a><br>
</font></span></blockquote></div><br></div>