Esempio n. 1
0
class HADES_VRRP_PREEMPTION_DELAY(Option):
    """
    Delay before a *MASTER* transitions to *BACKUP* when a node with a higher
    priority comes online
    """
    type = timedelta
    default = timedelta(seconds=30)
    static_check = check.between(timedelta(seconds=0), timedelta(seconds=1000))
Esempio n. 2
0
class HADES_PRIORITY(Option):
    """
    Priority of the site node instance.
    The available instance with the highest priority becomes master.
    """
    type = int
    default = 100
    static_check = check.between(1, 254)
Esempio n. 3
0
class HADES_VRRP_VIRTUAL_ROUTER_ID_UNAUTH(Option):
    """Virtual router ID used by Hades (unauth instance)"""
    type = int
    default = 68
    static_check = check.between(0, 255)
Esempio n. 4
0
class HADES_VRRP_VIRTUAL_ROUTER_ID_ROOT(Option):
    """Virtual router ID used by Hades (root instance)"""
    type = int
    default = 67
    static_check = check.between(0, 255)
Esempio n. 5
0
class HADES_POSTGRESQL_PORT(Option):
    """Port and socket name of the PostgresSQL database"""
    default = 5432
    type = int
    static_check = check.between(1, 65535)