Files
colony/role_settings.py
T
2026-09-19 20:39:12 +02:00

35 lines
954 B
Python

from colony.core.roles.explorer.role import Explorer
from colony.core.roles.unit.role import Unit
from colony.role_registry import RoleStats, HardwarePreferences, RolePriority, HardwareType
from colony.core.roles.foreman.role import Foreman
from colony.core.roles.gossip.role import Gossip
from colony.core.roles.vaultwarden.role import VaultWarden
available_roles = [
RoleStats(
cls=Unit,
priority=RolePriority.GENERAL,
),
RoleStats(
cls=Gossip,
priority=RolePriority.GENERAL,
),
RoleStats(
cls=Foreman,
priority=RolePriority.GENERAL,
),
RoleStats(
cls=VaultWarden,
priority=RolePriority.CRITICAL,
hardware_preferences=HardwarePreferences(
{
HardwareType.DISK_SPACE: 1,
HardwareType.LONGEVITY: 3,
}
)
),
RoleStats(
cls=Explorer,
priority=RolePriority.HIGH,
)
]