Module for Solaris 10's zoneadm
Jorge Schrauwen <sjorge@blackdot.be>
new
OmniOS,OpenIndiana,SmartOS,OpenSolaris,Solaris 10
New in version 2017.7.0.
Warning
Oracle Solaris 11's zoneadm is not supported by this module!
salt.modules.zoneadm.
attach
(zone, force=False, brand_opts=None)¶Attach the specified zone.
name of the zone
force the zone into the "installed" state with no validation
brand specific options to pass
CLI Example:
salt '*' zoneadm.attach lawrence
salt '*' zoneadm.attach lawrence True
salt.modules.zoneadm.
boot
(zone, single=False, altinit=None, smf_options=None)¶Boot (or activate) the specified zone.
name or uuid of the zone
boots only to milestone svc:/milestone/single-user:default.
valid path to an alternative executable to be the primordial process.
include two categories of options to control booting behavior of the service management facility: recovery options and messages options.
CLI Example:
salt '*' zoneadm.boot clementine
salt '*' zoneadm.boot maeve single=True
salt '*' zoneadm.boot teddy single=True smf_options=verbose
salt.modules.zoneadm.
clone
(zone, source, snapshot=None)¶Install a zone by copying an existing installed zone.
name of the zone
zone to clone from
optional name of snapshot to use as source
CLI Example:
salt '*' zoneadm.clone clementine dolores
salt.modules.zoneadm.
detach
(zone)¶Detach the specified zone.
name or uuid of the zone
CLI Example:
salt '*' zoneadm.detach kissy
salt.modules.zoneadm.
halt
(zone)¶Halt the specified zone.
name or uuid of the zone
Note
To cleanly shutdown the zone use the shutdown function.
CLI Example:
salt '*' zoneadm.halt hector
salt.modules.zoneadm.
install
(zone, nodataset=False, brand_opts=None)¶Install the specified zone from the system.
name of the zone
do not create a ZFS file system
brand specific options to pass
CLI Example:
salt '*' zoneadm.install dolores
salt '*' zoneadm.install teddy True
salt.modules.zoneadm.
list_zones
(verbose=True, installed=False, configured=False, hide_global=True)¶List all zones
display additional zone information
include installed zones in output
include configured zones in output
do not include global zone
CLI Example:
salt '*' zoneadm.list
salt.modules.zoneadm.
move
(zone, zonepath)¶Move zone to new zonepath.
name or uuid of the zone
new zonepath
CLI Example:
salt '*' zoneadm.move meave /sweetwater/meave
salt.modules.zoneadm.
ready
(zone)¶Prepares a zone for running applications.
name or uuid of the zone
CLI Example:
salt '*' zoneadm.ready clementine
salt.modules.zoneadm.
reboot
(zone, single=False, altinit=None, smf_options=None)¶Restart the zone. This is equivalent to a halt boot sequence.
name or uuid of the zone
boots only to milestone svc:/milestone/single-user:default.
valid path to an alternative executable to be the primordial process.
include two categories of options to control booting behavior of the service management facility: recovery options and messages options.
CLI Example:
salt '*' zoneadm.reboot dolores
salt '*' zoneadm.reboot teddy single=True
salt.modules.zoneadm.
shutdown
(zone, reboot=False, single=False, altinit=None, smf_options=None)¶Gracefully shutdown the specified zone.
name or uuid of the zone
reboot zone after shutdown (equivalent of shutdown -i6 -g0 -y)
boots only to milestone svc:/milestone/single-user:default.
valid path to an alternative executable to be the primordial process.
include two categories of options to control booting behavior of the service management facility: recovery options and messages options.
CLI Example:
salt '*' zoneadm.shutdown peter
salt '*' zoneadm.shutdown armistice reboot=True
salt.modules.zoneadm.
uninstall
(zone)¶Uninstall the specified zone from the system.
name or uuid of the zone
Warning
The -F flag is always used to avoid the prompts when uninstalling.
CLI Example:
salt '*' zoneadm.uninstall teddy
salt.modules.zoneadm.
verify
(zone)¶Check to make sure the configuration of the specified zone can safely be installed on the machine.
name of the zone
CLI Example:
salt '*' zoneadm.verify dolores