# salt.modules.mdata

Module for managaging metadata in SmartOS Zones

Added in version 2016.3.0.

maintainer:

  Jorge Schrauwen <sjorge@blackdot.be>

maturity:

  new

platform:

  smartos

salt.modules.mdata.delete_(*keyname)

  Delete metadata

  propstring

    name of property

  CLI Example:

      salt '*' mdata.get salt:role
      salt '*' mdata.get user-script salt:role

salt.modules.mdata.get_(*keyname)

  Get metadata

  keynamestring

    name of key

  Note

  If no keynames are specified, we get all (public) properties

  CLI Example:

      salt '*' mdata.get salt:role
      salt '*' mdata.get user-script salt:role

salt.modules.mdata.list_()

  List available metadata

  CLI Example:

      salt '*' mdata.list

salt.modules.mdata.put_(keyname, val)

  Put metadata

  propstring

    name of property

  valstring

    value to set

  CLI Example:

      salt '*' mdata.list