salt.modules.mdata

Module for managaging metadata in SmartOS Zones

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

注解

If no keynames are specified, we get all 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