Revision 7236533e
b/lib/constants.py | ||
---|---|---|
228 | 228 |
|
229 | 229 |
EXPORT_CONF_FILE = "config.ini" |
230 | 230 |
|
231 |
XEN_BOOTLOADER = _autoconf.XEN_BOOTLOADER |
|
232 |
XEN_KERNEL = _autoconf.XEN_KERNEL |
|
233 |
XEN_INITRD = _autoconf.XEN_INITRD |
|
234 |
XEN_CMD_XM = "xm" |
|
235 |
XEN_CMD_XL = "xl" |
|
236 |
|
|
237 |
KNOWN_XEN_COMMANDS = compat.UniqueFrozenset([ |
|
238 |
XEN_CMD_XM, |
|
239 |
XEN_CMD_XL, |
|
240 |
]) |
|
231 |
XEN_BOOTLOADER = _constants.XEN_BOOTLOADER |
|
232 |
XEN_KERNEL = _constants.XEN_KERNEL |
|
233 |
XEN_INITRD = _constants.XEN_INITRD |
|
234 |
XEN_CMD_XM = _constants.XEN_CMD_XM |
|
235 |
XEN_CMD_XL = _constants.XEN_CMD_XL |
|
236 |
KNOWN_XEN_COMMANDS = _constants.KNOWN_XEN_COMMANDS |
|
241 | 237 |
|
242 | 238 |
# When the Xen toolstack used is "xl", live migration requires the source host |
243 | 239 |
# to connect to the target host via ssh (xl runs this command). We need to pass |
b/src/Ganeti/HsConstants.hs | ||
---|---|---|
200 | 200 |
syslogSocket :: String |
201 | 201 |
syslogSocket = "/dev/log" |
202 | 202 |
|
203 |
-- * Xen |
|
204 |
|
|
205 |
xenBootloader :: String |
|
206 |
xenBootloader = AutoConf.xenBootloader |
|
207 |
|
|
208 |
xenCmdXl :: String |
|
209 |
xenCmdXl = "xl" |
|
210 |
|
|
211 |
xenCmdXm :: String |
|
212 |
xenCmdXm = "xm" |
|
213 |
|
|
214 |
xenInitrd :: String |
|
215 |
xenInitrd = AutoConf.xenInitrd |
|
216 |
|
|
217 |
xenKernel :: String |
|
218 |
xenKernel = AutoConf.xenKernel |
|
219 |
|
|
220 |
-- FIXME: perhaps rename to 'validXenCommands' for consistency with |
|
221 |
-- other constants |
|
222 |
knownXenCommands :: FrozenSet String |
|
223 |
knownXenCommands = ConstantUtils.mkSet [xenCmdXl, xenCmdXm] |
|
224 |
|
|
203 | 225 |
-- * Common exit codes |
204 | 226 |
|
205 | 227 |
exitSuccess :: Int |
Also available in: Unified diff