maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01805
Re: Are nodes aware of MAAS?
-
To:
Maas Devel <maas-devel@xxxxxxxxxxxxxxxxxxx>
-
From:
Mark Shuttleworth <mark@xxxxxxxxxx>
-
Date:
Thu, 10 Jul 2014 11:10:16 +0100
-
In-reply-to:
<20140709220541.GC22925@smitten>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
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