[Maas-devel] Are nodes aware of MAAS?

Mark Shuttleworth mark at ubuntu.com
Thu Jul 10 10:10:16 UTC 2014


On 09/07/14 23:05, Tycho Andersen wrote:
> Hi Jeff,
>
> On Wed, Jul 09, 2014 at 05:46:55PM -0400, Jeffrey Lane wrote:
>> Would it be possible to somehow inject this data into the node via the
>> curtin_userdata file (or d-i preseed)) at deployment time?
> Depends on what exactly you want, but if all you're after is a hard
> coded version, you can add something like:
>
> # untested
> late_commands:
>   set_maas_in_guest: curtin in-target -- sh -c "/bin/echo 1.5.blahblahblah > /etc/installed-with-maas"
>
> in the maas region controller's /etc/maas/preseeds/curtin_userdata.

Would not be a bad idea to record enough information for the node (or
software running on the node) to talk back to MAAS. For example, a
unique shared key (readable only by root) together with the MAAS
location and API version.

This would allow, for example, the machine to update MAAS hardware
database without a reboot cycle.

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20140710/1f75a8ed/attachment.pgp>


More information about the Maas-devel mailing list