salt.modules.smartos_imgadm

Module for running imgadm command on SmartOS

salt.modules.smartos_imgadm.avail(search=None, verbose=False)

Return a list of available images

search : string
search keyword
verbose : boolean (False)
toggle verbose output

CLI 范例:

salt '*' imgadm.avail [percona]
salt '*' imgadm.avail verbose=True
salt.modules.smartos_imgadm.delete(uuid)

Remove an installed image

uuid : string
Specifies uuid to import

CLI 范例:

salt '*' imgadm.delete e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.get(uuid)

Return info on an installed image

uuid : string
uuid of image

CLI 范例:

salt '*' imgadm.get e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.import(uuid, verbose=False)

Import an image from the repository

uuid : string
uuid to import
verbose : boolean (False)
toggle verbose output

CLI 范例:

salt '*' imgadm.import e42f8c84-bbea-11e2-b920-078fab2aab1f [verbose=True]
salt.modules.smartos_imgadm.list(verbose=False)

Return a list of installed images

verbose : boolean (False)
toggle verbose output

CLI 范例:

salt '*' imgadm.list [verbose=True]
salt.modules.smartos_imgadm.show(uuid)

Show manifest of a given image

uuid : string
uuid of image

CLI 范例:

salt '*' imgadm.show e42f8c84-bbea-11e2-b920-078fab2aab1f
salt.modules.smartos_imgadm.update(uuid='')

Gather info on unknown image(s) (locally installed)

uuid : string
optional uuid of image

CLI 范例:

salt '*' imgadm.update [uuid]
salt.modules.smartos_imgadm.vacuum(verbose=False)

Remove unused images

verbose : boolean (False)
toggle verbose output

CLI 范例:

salt '*' imgadm.vacuum [verbose=True]
salt.modules.smartos_imgadm.version()

Return imgadm version

CLI 范例:

salt '*' imgadm.version