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]
|
|
}
|
|
}
|