mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add the libvirt module
This commit is contained in:
parent
386d763d04
commit
03e9861a83
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…
Reference in New Issue
Block a user