Module for running imgadm command on SmartOS
salt.modules.smartos_imgadm.
avail
(search=None, verbose=False)¶Return a list of available images
CLI 范例:
salt '*' imgadm.avail [percona]
salt '*' imgadm.avail verbose=True
salt.modules.smartos_imgadm.
delete
(uuid)¶Remove an installed image
CLI 范例:
salt '*' imgadm.delete e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.
get
(uuid)¶Return info on an installed image
CLI 范例:
salt '*' imgadm.get e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.
import
(uuid, verbose=False)¶Import an image from the repository
CLI 范例:
salt '*' imgadm.import e42f8c84-bbea-11e2-b920-078fab2aab1f [verbose=True]
salt.modules.smartos_imgadm.
list
(verbose=False)¶Return a list of installed images
CLI 范例:
salt '*' imgadm.list [verbose=True]
salt.modules.smartos_imgadm.
show
(uuid)¶Show manifest of a given image
CLI 范例:
salt '*' imgadm.show e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.
update
(uuid='')¶Gather info on unknown image(s) (locally installed)
CLI 范例:
salt '*' imgadm.update [uuid]
salt.modules.smartos_imgadm.
vacuum
(verbose=False)¶Remove unused images
CLI 范例:
salt '*' imgadm.vacuum [verbose=True]
salt.modules.smartos_imgadm.
version
()¶Return imgadm version
CLI 范例:
salt '*' imgadm.version