dhcp: manage dhcp-aurore
parent
26743b464d
commit
9b07fc9001
@ -1,4 +1,14 @@
|
||||
- name: force run dhcp re2o-service
|
||||
shell: /var/local/re2o-services/dhcp/main.py --force
|
||||
become_user: re2o-services
|
||||
|
||||
- name: restart dhcpd
|
||||
systemd:
|
||||
state: restarted
|
||||
name: isc-dhcp-server
|
||||
|
||||
- name: restart rsyslog
|
||||
systemd:
|
||||
name: rsyslog
|
||||
state: restarted
|
||||
|
||||
|
@ -0,0 +1,36 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
default-lease-time 86400;
|
||||
max-lease-time 86400;
|
||||
|
||||
# The MTU theoretically could go as high as 1496 (4-byte VLAN tag).
|
||||
option interface-mtu {{ mtu }};
|
||||
option root-path "/";
|
||||
|
||||
# The ddns-updates-style parameter controls whether or not the server will
|
||||
# attempt to do a DNS update when a lease is confirmed. We default to the
|
||||
# behavior of the version 2 packages ('none', since DHCP v2 didn't
|
||||
# have support for DDNS.)
|
||||
ddns-update-style none;
|
||||
|
||||
# If this DHCP server is the official DHCP server for the local
|
||||
# network, the authoritative directive should be uncommented.
|
||||
authoritative;
|
||||
|
||||
# Use this to send dhcp log messages to a different log file (you also
|
||||
# have to hack syslog.conf to complete the redirection).
|
||||
log-facility local7;
|
||||
|
||||
# Aurore topology
|
||||
subnet 45.66.110.0 netmask 255.255.255.0 {
|
||||
interface "ens19";
|
||||
option subnet-mask 255.255.255.0;
|
||||
option broadcast-address 45.66.110.255;
|
||||
option routers 45.66.110.{{ router_ip_suffix }};
|
||||
option domain-name-servers 45.66.110.{{ dns_host_suffix_main }}, {{ backup_dns_servers|join(', ') }};
|
||||
option domain-name "adh.auro.re";
|
||||
option domain-search "adh.auro.re";
|
||||
include "/var/local/re2o-services/dhcp/generated/dhcp.adh.auro.re.list";
|
||||
|
||||
deny unknown-clients;
|
||||
}
|
Loading…
Reference in New Issue