Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
7888a614
Commit
7888a614
authored
Oct 18, 2008
by
Alexander Schreiber
Browse files
Add constants for cluster defaults
Reviewed-by: iustinp
parent
d15a9ad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/constants.py
View file @
7888a614
...
...
@@ -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
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment