W3cubDocs

/SaltStack

salt.modules.mdata

Module for managaging metadata in SmartOS Zones

New in version 2016.3.0.

maintainer: Jorge Schrauwen <sjorge@blackdot.be>
maturity: new
platform: smartos

salt.modules.mdata.delete_(*keyname)

Delete metadata

prop : string
name of property

CLI Example:

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

salt.modules.mdata.get_(*keyname)

Get metadata

keyname : string
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

prop : string
name of property
val : string
value to set

CLI Example:

salt '*' mdata.list

© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mdata.html