Home | History | Annotate | Download | only in server

Lines Matching refs:ROLE

49         roles = ','.join([r.role for r in self.roles.all()])
62 """Get a list of role names of the server.
64 @return: A list of role names of the server.
66 return [r.role for r in self.roles.all()]
96 """Role associated with hosts."""
101 ROLE = enum.Enum(*ROLE_LIST, string_values=True)
104 ROLES_REQUIRE_BACKUP = [ROLE.SCHEDULER, ROLE.HOST_SCHEDULER,
105 ROLE.DATABASE, ROLE.SUITE_SCHEDULER,
106 ROLE.DRONE]
109 ROLES_REQUIRE_UNIQUE_INSTANCE = [ROLE.SCHEDULER,
110 ROLE.HOST_SCHEDULER,
111 ROLE.DATABASE,
112 ROLE.SUITE_SCHEDULER]
115 role = dbmodels.CharField(max_length=128, choices=ROLE.choices())
139 RANGE_LIMITS={'role': ServerRole.ROLE_LIST,
146 1. Any key in RANGE_LIMITS, i.e., role and status. Value should be a valid
147 role or status.
151 validate(role='drone', status='backup', hostname='server1')