
Initial submission for a Python-based virtualbox installer for StarlingX Co-Authored-By: Ovidiu.Poncea <ovidiu.poncea@windriver.com> Co-Authored-By: Wei Zhou <wei.zhou@windriver.com> Co-Authored-By: William Jia <william.jia@windriver.com> Co-Authored-By: Sebastien Papineau <sebastien.papineau@windriver.com> Co-Authored-By: Timothy Mather <timothy.mather@windriver.com> Co-Authored-By: Paul Buzuloiu <paul.buzuloiu@windriver.com> DocImpact Story: 2005051 Task: 29552 Signed-off-by: Maria Yousaf <maria.yousaf@windriver.com> Change-Id: Iad5b6d8103886d7eeeab7bf2782eca4adb95e3e6
80 lines
2.1 KiB
Python
80 lines
2.1 KiB
Python
#!/usr/bin/python3
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
class Nodes:
|
|
CONTROLLER_CEPH = {
|
|
'node_type': 'controller-STORAGE',
|
|
'memory': 12288,
|
|
'cpus': 5,
|
|
'disks': {
|
|
1:[240000],
|
|
2:[240000, 10000],
|
|
3:[240000, 10000, 10000],
|
|
4:[240000, 10000, 10000, 10000],
|
|
5:[240000, 10000, 10000, 10000, 10000],
|
|
6:[240000, 10000, 10000, 10000, 10000, 10000],
|
|
7:[240000, 10000, 10000, 10000, 10000, 10000, 10000]
|
|
}
|
|
}
|
|
|
|
CONTROLLER_LVM = {
|
|
'node_type': 'controller-STANDARD',
|
|
'memory': 12288,
|
|
'cpus': 5,
|
|
'disks': {
|
|
1:[240000],
|
|
2:[240000, 10000],
|
|
3:[240000, 10000, 10000],
|
|
4:[240000, 10000, 10000, 10000],
|
|
5:[240000, 10000, 10000, 10000, 10000],
|
|
6:[240000, 10000, 10000, 10000, 10000, 10000],
|
|
7:[240000, 10000, 10000, 10000, 10000, 10000, 10000]
|
|
}
|
|
}
|
|
|
|
CONTROLLER_AIO = {
|
|
'node_type': 'controller-AIO',
|
|
'memory': 20000,
|
|
'cpus': 8,
|
|
'disks': {
|
|
1:[240000],
|
|
2:[240000, 10000],
|
|
3:[240000, 10000, 10000],
|
|
4:[240000, 10000, 10000, 10000],
|
|
5:[240000, 10000, 10000, 10000, 10000],
|
|
6:[240000, 10000, 10000, 10000, 10000, 10000],
|
|
7:[240000, 10000, 10000, 10000, 10000, 10000, 10000]
|
|
}
|
|
}
|
|
|
|
COMPUTE = {
|
|
'node_type': 'compute',
|
|
'memory': 4096,
|
|
'cpus': 3,
|
|
'disks': {
|
|
1:[50000],
|
|
2:[50000, 10000],
|
|
3:[50000, 10000, 10000],
|
|
4:[50000, 10000, 10000, 10000],
|
|
5:[50000, 10000, 10000, 10000, 10000],
|
|
6:[50000, 10000, 10000, 10000, 10000, 10000],
|
|
7:[50000, 10000, 10000, 10000, 10000, 10000, 10000]
|
|
}
|
|
}
|
|
|
|
STORAGE = {
|
|
'node_type': 'storage',
|
|
'memory': 3072,
|
|
'cpus': 3,
|
|
'disks': {
|
|
1:[50000],
|
|
2:[50000, 10000],
|
|
3:[50000, 10000, 10000],
|
|
4:[50000, 10000, 10000, 10000],
|
|
5:[50000, 10000, 10000, 10000, 10000]
|
|
}
|
|
}
|