Node user-data for cloud-init’s use.


Bin Wrapper class to convince django that a string is really binary.
BinaryField([verbose_name, name, ...]) A field that stores binary data.
CleanSave Mixin for model classes.
DefaultMeta Base class for model Meta classes in the metadataserver app.
Model(*args, **kwargs)
NodeUserData(*args, **kwargs) User-data portion of a node’s metadata.
NodeUserDataManager() Utility for the collection of NodeUserData items.
OneToOneField(to[, to_field]) A OneToOneField is essentially the same as a ForeignKey, with the exception that always carries a “unique” constraint with it and the reverse relation always returns the object pointed to (since there will only ever be one), rather than returning a list.
class metadataserver.models.nodeuserdata.NodeUserData(*args, **kwargs)[source]

Bases: maasserver.models.cleansave.CleanSave, django.db.models.base.Model

User-data portion of a node’s metadata.

When cloud-init sets up a node, it retrieves specific data for that node from the metadata service. One portion of that is the “user-data” binary blob.

  • node – Node that this is for.
  • data – base64-encoded data.