Module for Solaris 10's zonecfg
Jorge Schrauwen <sjorge@blackdot.be>
new
OmniOS,OpenIndiana,SmartOS,OpenSolaris,Solaris 10
salt.modules.file
New in version 2017.7.0.
Warning
Oracle Solaris 11's zonecfg is not supported by this module!
Add a resource
name of zone
type of resource
resource properties
CLI Example:
salt '*' zonecfg.add_resource tallgeese rctl name=zone.max-locked-memory value='(priv=privileged,limit=33554432,action=deny)'
Clear a property
name of zone
name of property
CLI Example:
salt '*' zonecfg.clear_property deathscythe cpu-shares
Create an in-memory configuration for the specified zone.
name of zone
brand name
path of zone
overwrite configuration
CLI Example:
salt '*' zonecfg.create deathscythe ipkg /zones/deathscythe
Create an in-memory configuration from a template for the specified zone.
name of zone
name of template
Warning
existing config will be overwritten!
CLI Example:
salt '*' zonecfg.create_from_template leo tallgeese
Delete the specified configuration from memory and stable storage.
name of zone
CLI Example:
salt '*' zonecfg.delete epyon
Export the configuration from memory to stable storage.
name of zone
path of file to export to
CLI Example:
salt '*' zonecfg.export epyon
salt '*' zonecfg.export epyon /zones/epyon.cfg
Import the configuration to memory from stable storage.
name of zone
path of file to export to
CLI Example:
salt '*' zonecfg.import epyon /zones/epyon.cfg
Display the configuration from memory
name of zone
also include calculated values like capped-cpu, cpu-shares, ...
CLI Example:
salt '*' zonecfg.info tallgeese
Remove a resource
name of zone
type of resource
key for resource selection
value for resource selection
Note
Set resource_selector to None for resource that do not require one.
CLI Example:
salt '*' zonecfg.remove_resource tallgeese rctl name zone.max-locked-memory
Set a property
name of zone
name of property
value of property
CLI Example:
salt '*' zonecfg.set_property deathscythe cpu-shares 100
Add a resource
name of zone
type of resource
unique resource identifier
resource properties
Note
Set resource_selector to None for resource that do not require one.
CLI Example:
salt '*' zonecfg.update_resource tallgeese rctl name name=zone.max-locked-memory value='(priv=privileged,limit=33554432,action=deny)'