Initial commit
This commit is contained in:
commit
55c3caa766
49 files changed
+1602
No files matched your search
@@ -0,0 +1,30 @@
|
||||
from colony.role_registry import RoleStats, HardwarePreferences, RolePriority, HardwareType
|
||||
from colony.roles.explorer.role import Explorer
|
||||
from colony.roles.foreman.role import Foreman
|
||||
from colony.roles.unit.role import Unit
|
||||
from colony.roles.vaultwarden.role import VaultWarden
|
||||
|
||||
available_roles = [
|
||||
RoleStats(
|
||||
cls=Unit,
|
||||
priority=RolePriority.GENERAL,
|
||||
),
|
||||
RoleStats(
|
||||
cls=Foreman,
|
||||
priority=RolePriority.CRITICAL,
|
||||
),
|
||||
RoleStats(
|
||||
cls=VaultWarden,
|
||||
priority=RolePriority.CRITICAL,
|
||||
hardware_preferences=HardwarePreferences(
|
||||
{
|
||||
HardwareType.DISK_SPACE: 1,
|
||||
HardwareType.LONGEVITY: 3,
|
||||
}
|
||||
)
|
||||
),
|
||||
RoleStats(
|
||||
cls=Explorer,
|
||||
priority=RolePriority.HIGH,
|
||||
)
|
||||
]
|
||||
Reference in new issue
Block a user