maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #02106
Run scripts in curtin_userdata based on maas tags
Is there a way to easily grok maas tags from within curtin_userdata to run
bits of code depending on the tags found?
For example, in very bad pseduocode:
&myscript
if maas.tag=foo; then
do foo things
if maas.tag=bar; then
do bar things
else
do baz things
My reasoning is that I want to be able to be able to automate the
installation of OCP certification test pacakges based on the spec being
tested... so in MAAS, a Winterfell server would be tagged "winterfell" and
a Leopard would be tagged "leopard" and when curtin_userdata ran, depending
on what the tag is, it would either install the winterfell test suite or
the leopard test suite.
That is probably possible even now, but I'm jet lagged and have a million
other non-OCP things on my mind so I'm drawing a blank.
Cheers
Jeff
--
Sent via a phone. Please forgive brevity and typos.