Commit 7888a614 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

Add constants for cluster defaults

Reviewed-by: iustinp
parent d15a9ad3
......@@ -368,3 +368,35 @@ ELOG_PROGRESS = "progress"
# Temporary RAPI constants until we have cluster parameters
RAPI_ENABLE = True
RAPI_PORT = 5080
# cluster wide default parameters
DEFAULT_ENABLED_HYPERVISOR = HT_XEN_PVM
HVC_DEFAULTS = {
HT_XEN_PVM: {
HV_KERNEL_PATH: "/boot/vmlinuz-2.6-xenU",
HV_INITRD_PATH: None,
},
HT_XEN_HVM: {
HV_BOOT_ORDER: "cd",
HV_CDROM_IMAGE_PATH: None,
HV_NIC_TYPE: HT_HVM_NIC_RTL8139,
HV_DISK_TYPE: HT_HVM_DEV_PARAVIRTUAL,
HV_VNC_BIND_ADDRESS: '0.0.0.0',
HV_ACPI: True,
HV_PAE: True,
},
HT_KVM: {
HV_KERNEL_PATH: "/boot/vmlinuz-2.6-xenU",
HV_INITRD_PATH: None,
HV_ACPI: True,
},
HT_FAKE: {
},
}
BEC_DEFAULTS = {
BE_MEMORY: 128,
BE_VCPUS: 1,
BE_AUTO_BALANCE: True,
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment