← Back to team overview

maas-devel team mailing list archive

Re: Are nodes aware of MAAS?

 

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

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References