Remove duplicate monitor config options from xconfig keyword, add --noprobe
[pykickstart.git] / pykickstart / data.py
blobfdd91b7c26ae248795f582bdc8a127e85f5aae40
2 # data.py: Kickstart data representation.
4 # Chris Lumens <clumens@redhat.com>
6 # Copyright 2005 Red Hat, Inc.
8 # This software may be freely redistributed under the terms of the GNU
9 # general public license.
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 from constants import *
17 class KickstartData:
18 def __init__(self):
19 # Set by command handlers.
20 self.authconfig = ""
21 self.autopart = False
22 self.autostep = {"autoscreenshot": False}
23 self.bootloader = {"appendLine": "", "driveorder": [],
24 "forceLBA": False, "location": "mbr", "md5pass": "",
25 "password": "", "upgrade": False}
26 self.clearpart = {"drives": [], "initAll": False,
27 "type": CLEARPART_TYPE_NONE}
28 self.device = ""
29 self.deviceprobe = ""
30 self.displayMode = DISPLAY_MODE_GRAPHICAL
31 self.driverdisk = ""
32 self.firewall = {"enabled": True, "ports": [], "trusts": []}
33 self.firstboot = FIRSTBOOT_SKIP
34 self.ignoredisk = []
35 self.interactive = False
36 self.keyboard = ""
37 self.lang = ""
38 self.mediacheck = False
39 self.method = {"method": ""}
40 self.monitor = {"hsync": "", "monitor": "", "probe": True, "vsync": ""}
41 self.network = []
42 self.platform = ""
43 self.reboot = True
44 self.rootpw = {"isCrypted": False, "password": ""}
45 self.selinux = SELINUX_ENFORCING
46 self.skipx = False
47 self.timezone = {"isUtc": False, "timezone": ""}
48 self.upgrade = False
49 self.vnc = {"enabled": False, "password": "", "host": "", "port": ""}
50 self.xconfig = {"driver": "", "defaultdesktop": "", "depth": 0,
51 "probe": True, "resolution": "", "startX": False,
52 "videoRam": ""}
53 self.zerombr = False
54 self.zfcp = {"devnum": "", "fcplun": "", "scsiid": "", "scsilun": "",
55 "wwpn": ""}
57 self.lvList = []
58 self.partitions = []
59 self.raidList = []
60 self.vgList = []
62 # Set by %package header.
63 self.excludeDocs = False
64 self.addBase = True
65 self.handleMissing = KS_MISSING_PROMPT
67 # Set by sections.
68 self.groupList = []
69 self.packageList = []
70 self.excludedList = []
71 self.scripts = []
73 class KickstartLogVolData:
74 def __init__(self):
75 self.bytesPerInode = 4096
76 self.fsopts = ""
77 self.fstype = ""
78 self.grow = False
79 self.maxSizeMB = 0
80 self.name = ""
81 self.format = True
82 self.percent = 0
83 self.recommended = False
84 self.size = None
85 self.preexist = False
86 self.vgname = ""
87 self.mountpoint = ""
89 class KickstartNetworkData:
90 def __init__(self):
91 self.bootProto = "dhcp"
92 self.dhcpclass = ""
93 self.device = ""
94 self.essid = ""
95 self.ethtool = ""
96 self.gateway = ""
97 self.hostname = ""
98 self.ip = ""
99 self.nameserver = ""
100 self.netmask = ""
101 self.nodns = False
102 self.notksdevice = False
103 self.onboot = True
104 self.wepkey = ""
106 class KickstartPartData:
107 def __init__ (self):
108 self.active = False
109 self.primOnly = False
110 self.bytesPerInode = 4096
111 self.end = 0
112 self.fsopts = ""
113 self.fstype = ""
114 self.grow = False
115 self.label = ""
116 self.maxSizeMB = 0
117 self.format = True
118 self.onbiosdisk = ""
119 self.disk = ""
120 self.onPart = ""
121 self.recommended = False
122 self.size = None
123 self.start = 0
124 self.mountpoint = ""
126 class KickstartRaidData:
127 def __init__ (self):
128 self.device = ""
129 self.fsopts = ""
130 self.fstype = ""
131 self.level = ""
132 self.format = True
133 self.spares = 0
134 self.preexist = False
135 self.mountpoint = ""
136 self.members = ""
137 self.bytesPerInode = 4096
139 class KickstartVolGroupData:
140 def __init__(self):
141 self.format = True
142 self.pesize = 32768
143 self.preexist = False
144 self.vgname = ""
145 self.physvols = ""