2019-02-19 13:09:32 -05:00
|
|
|
#!/usr/bin/python3
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2023-05-04 17:21:54 -03:00
|
|
|
"""
|
|
|
|
This module contains dictionaries for different types of nodes in a virtual environment,
|
2023-09-05 09:21:32 -03:00
|
|
|
such as CONTROLLER_CEPH, CONTROLLER_LVM, CONTROLLER_AIO, WORKER, and STORAGE.
|
2023-05-04 17:21:54 -03:00
|
|
|
"""
|
|
|
|
|
|
|
|
class Nodes: #pylint: disable=too-few-public-methods
|
|
|
|
"""The `Nodes` class contains dictionaries for different types of nodes in a
|
|
|
|
virtual environment."""
|
2019-02-19 13:09:32 -05:00
|
|
|
|
|
|
|
CONTROLLER_CEPH = {
|
|
|
|
'node_type': 'controller-STORAGE',
|
2023-06-23 11:02:26 -03:00
|
|
|
'memory': 16384,
|
|
|
|
'cpus': 4,
|
2019-02-19 13:09:32 -05:00
|
|
|
'disks': {
|
2023-06-23 11:02:26 -03:00
|
|
|
1:[245760],
|
|
|
|
2:[245760, 10240],
|
|
|
|
3:[245760, 10240, 10240],
|
|
|
|
4:[245760, 10240, 10240, 10240],
|
|
|
|
5:[245760, 10240, 10240, 10240, 10240],
|
|
|
|
6:[245760, 10240, 10240, 10240, 10240, 10240],
|
|
|
|
7:[245760, 10240, 10240, 10240, 10240, 10240, 10240]
|
2019-02-19 13:09:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CONTROLLER_LVM = {
|
|
|
|
'node_type': 'controller-STANDARD',
|
2023-06-23 11:02:26 -03:00
|
|
|
'memory': 16384,
|
|
|
|
'cpus': 4,
|
2019-02-19 13:09:32 -05:00
|
|
|
'disks': {
|
2023-06-23 11:02:26 -03:00
|
|
|
1:[245760],
|
|
|
|
2:[245760, 10240],
|
|
|
|
3:[245760, 10240, 10240],
|
|
|
|
4:[245760, 10240, 10240, 10240],
|
|
|
|
5:[245760, 10240, 10240, 10240, 10240],
|
|
|
|
6:[245760, 10240, 10240, 10240, 10240, 10240],
|
|
|
|
7:[245760, 10240, 10240, 10240, 10240, 10240, 10240]
|
2019-02-19 13:09:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CONTROLLER_AIO = {
|
|
|
|
'node_type': 'controller-AIO',
|
2023-06-23 11:02:26 -03:00
|
|
|
'memory': 20480,
|
|
|
|
'cpus': 4,
|
2019-02-19 13:09:32 -05:00
|
|
|
'disks': {
|
2023-06-23 11:02:26 -03:00
|
|
|
1:[245760],
|
|
|
|
2:[245760, 10240],
|
|
|
|
3:[245760, 10240, 10240],
|
|
|
|
4:[245760, 10240, 10240, 10240],
|
|
|
|
5:[245760, 10240, 10240, 10240, 10240],
|
|
|
|
6:[245760, 10240, 10240, 10240, 10240, 10240],
|
|
|
|
7:[245760, 10240, 10240, 10240, 10240, 10240, 10240]
|
2019-02-19 13:09:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-05 09:21:32 -03:00
|
|
|
WORKER = {
|
|
|
|
'node_type': 'worker',
|
2023-06-23 11:02:26 -03:00
|
|
|
'memory': 8192,
|
2019-02-19 13:09:32 -05:00
|
|
|
'cpus': 3,
|
|
|
|
'disks': {
|
2023-06-23 11:02:26 -03:00
|
|
|
1:[102400],
|
|
|
|
2:[102400, 10240],
|
|
|
|
3:[102400, 10240, 10240],
|
|
|
|
4:[102400, 10240, 10240, 10240],
|
|
|
|
5:[102400, 10240, 10240, 10240, 10240],
|
|
|
|
6:[102400, 10240, 10240, 10240, 10240, 10240],
|
|
|
|
7:[102400, 10240, 10240, 10240, 10240, 10240, 10240]
|
2019-02-19 13:09:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
STORAGE = {
|
|
|
|
'node_type': 'storage',
|
2023-06-23 11:02:26 -03:00
|
|
|
'memory': 4096,
|
|
|
|
'cpus': 1,
|
2019-02-19 13:09:32 -05:00
|
|
|
'disks': {
|
2023-06-23 11:02:26 -03:00
|
|
|
1:[81920],
|
|
|
|
2:[81920, 10240],
|
|
|
|
3:[81920, 10240, 10240],
|
|
|
|
4:[81920, 10240, 10240, 10240],
|
|
|
|
5:[81920, 10240, 10240, 10240, 10240]
|
2019-02-19 13:09:32 -05:00
|
|
|
}
|
|
|
|
}
|