<div dir="ltr">Hi Jim<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 4:47 PM, 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"><div style="word-wrap:break-word"><div><br></div><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div> <br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>* Is there a stable API endpoint that one can call during deployment scripts? <br></div></div></blockquote><div><br></div><div>If you are trying to get status of the machine, you could use the machines endpoint to see its status, or the events endpoint to show the events for the specific machine. Is there any specific information you are looking for? <br></div><div><br></div></div></div></div></div></blockquote><div> <br></div></span></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>What’s the URL for the machines that I would use? Wouldn’t I need my own ID for that? </div></div></div></blockquote><div><br></div><div>Yes you would need to be logged in into the API. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><br></div><div>All I wanted to do was to reliably lookup my own FQDN, as well optionally get some custom payload for each node into a script that runs during setup.</div></div></div></blockquote><div> </div><div>I would need more context than that, but you could get the FQDN of a deploying machine in the preseeds context (i.e. node.fqdn()). That said, you could also do post_install configuration via preseeds.</div><div><br></div><div>You could inject user_data on the deployment (if doing so via the API of course).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><div><br></div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>* Can one call the metadata API post deployment?<br>* How are the nodes supposed to authenticate? I keep getting Forbidden replies.<br></div></div></blockquote><div><br></div><div>This may be an indication of mis-configuration. Please make sure that /etc/maas/rackd.conf points to an IP the machines you are commissioning/deploying can access to, and in port 5240. (e.g. maas_url: <a href="http://10.90.90.1:5240/MAAS" target="_blank">http://10.90.90.1:5240/MAAS</a>)</div></div></div></div></div></blockquote></span></div><br><div>I’m fairly certain that it works, as when I mess up that URL, the boot process stops much earlier than my curtin scripts fire. (I tried to use https, which didn’t work, but it did prove that the setting is used during the boot process).</div><div><br></div><div>Cheers,</div><div>Jim</div><div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Andres Rodriguez<div>Engineering Manager, MAAS</div><div>Canonical USA, Inc.</div></div></div></div></div></div></div>
</div></div>