Example #1
0
class HADES_POSTGRESQL_LISTEN(Option):
    """
    A list of addresses PostgreSQL should listen on.
    """
    default = (netaddr.IPNetwork('127.0.0.1/8'), )
    type = collections.abc.Sequence
    static_check = check.sequence(check.network_ip)
    runtime_check = check.sequence(check.address_exists)
Example #2
0
class HADES_RADIUS_LISTEN(Option):
    """
    Sequence of IPs and networks the RADIUS server is listening on.
    """
    default = (netaddr.IPNetwork('10.66.68.10/24'), )
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.network_ip))
    runtime_check = check.sequence(check.address_exists)
Example #3
0
class HADES_UNAUTH_LISTEN(Option):
    """
    Sequence of IPs and networks to listen for unauthenticated users.

    The first IP in the sequence will be the main IP, e.g. it will be advertised
    as IP of DNS server in DHCP responses.
    """
    default = (netaddr.IPNetwork('10.66.0.1/19'), )
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.network_ip))
    runtime_check = check.sequence(check.address_exists)
Example #4
0
class HADES_MAIL_DESTINATION_ADDRESSES(Option):
    """Automatic notification mails will be send to this address."""
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.type_is(str)))