mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add the libvirt module
This commit is contained in:
parent
386d763d04
commit
03e9861a83
1 changed files with 22 additions and 0 deletions
22
salt/modules/libvirt.py
Normal file
22
salt/modules/libvirt.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
'''
|
||||
Work with vitual machines managed by libvirt
|
||||
'''
|
||||
# Import Python Libs
|
||||
import os
|
||||
import sub_process
|
||||
import libvirt
|
||||
import subprocess
|
||||
import StringIO
|
||||
from xml.dom import minidom
|
||||
# Import libvirt
|
||||
import libvirt
|
||||
|
||||
VIRT_STATE_NAME_MAP = {
|
||||
0 : "running",
|
||||
1 : "running",
|
||||
2 : "running",
|
||||
3 : "paused",
|
||||
4 : "shutdown",
|
||||
5 : "shutdown",
|
||||
6 : "crashed"
|
||||
}
|
Loading…
Add table
Reference in a new issue