For the key certificate this state uses the external pillar in the master to call for the generation and signing of certificates for systems running libvirt:
libvirt_keys:
virt.keys
salt.states.virt.
keys
(name, basepath='/etc/pki')¶Manage libvirt keys.
/etc/pki
, this is the root location used for libvirt
keys on the hypervisorsalt.states.virt.
powered_off
(name)¶Stops a VM by power off.
2016.3.0 新版功能.
domain_name:
virt.stopped
salt.states.virt.
rebooted
(name)¶Reboots VMs
2016.3.0 新版功能.
参数: | name -- |
---|---|
返回: |
salt.states.virt.
reverted
(name, snapshot=None, cleanup=False)¶2016.3.0 版后已移除.
Reverts to the particular snapshot.
2016.3.0 新版功能.
domain_name:
virt.reverted:
- cleanup: True
domain_name_1:
virt.reverted:
- snapshot: snapshot_name
- cleanup: False
salt.states.virt.
running
(name, **kwargs)¶Starts an existing guest, or defines and starts a new VM with specified arguments.
2016.3.0 新版功能.
domain_name:
virt.running
domain_name:
virt.running:
- cpu: 2
- mem: 2048
- eth0_mac: 00:00:6a:53:00:e3
salt.states.virt.
saved
(name, suffix=None)¶2016.3.0 版后已移除: Use snapshot()
instead.
Takes a snapshot of a particular VM or by a UNIX-style wildcard.
2016.3.0 新版功能.
domain_name:
virt.saved:
- suffix: periodic
domain*:
virt.saved:
- suffix: periodic
salt.states.virt.
snapshot
(name, suffix=None)¶Takes a snapshot of a particular VM or by a UNIX-style wildcard.
2016.3.0 新版功能.
domain_name:
virt.snapshot:
- suffix: periodic
domain*:
virt.snapshot:
- suffix: periodic
salt.states.virt.
stopped
(name)¶Stops a VM by shutting it down nicely.
2016.3.0 新版功能.
domain_name:
virt.stopped
salt.states.virt.
unpowered
(name)¶2016.3.0 版后已移除: Use powered_off()
instead.
Stops a VM by power off.
2016.3.0 新版功能.
domain_name:
virt.stopped