forked from mrlesmithjr/ansible-kea-dhcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
144 lines (135 loc) · 4.09 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
# defaults file for ansible-kea-dhcp
# Defines if Kea DHCP should be configured
kea_dhcp_config: false
# Defines Kea DHCP services should be enabled
kea_dhcp_service_state:
ddns: true
ipv4: true
ipv6: false
ctrl: true
# The DHCP DDNS configuration below is formatted appropriately to be converted
# directly to JSON using the kea-dhcp-ddns.conf.j2 Jinja2 template.
kea_dhcp_ddns_config:
DhcpDdns:
ip-address: 127.0.0.1
port: 53001
tsig-keys: []
forward-ddns: {}
reverse-ddns: {}
Logging:
loggers:
- name: kea-dhcp-ddns
output_options:
- output: /var/log/kea-ddns.log
severity: INFO
debuglevel: 0
# The DHCP configuration below is formatted appropriately to be converted
# directly to JSON using the kea-dhcp4.conf.j2 Jinja2 template. If you need
# to add more settings/options below ensure they are added appropriately in
# YAML format in order to parse to JSON correctly.
# Reference the below guide for more information
# http://kea.isc.org/docs/kea-guide.html#idp50527472
kea_dhcp_dhcp4_config:
Dhcp4:
renew-timer: 1000
rebind-timer: 2000
# Add names of interfaces to listen on
interfaces-config:
interfaces:
- "*"
# - eth0
# - eth1
dhcp-socket-type: raw
# Use Memfile lease database backend to store leases in a CSV file.
lease-database:
type: memfile
persist: true
lfc-interval: 0
# Setup reclamation of the expired leases and leases affinity.
expired-leases-processing:
reclaim-timer-wait-time: 10
flush-reclaimed-timer-wait-time: 25
hold-reclaimed-time: 3600
max-reclaim-leases: 100
max-reclaim-time: 250
unwarned-reclaim-cycles: 5
# Global (inherited by all subnets) lease lifetime is mandatory parameter.
valid-lifetime: 4000
# Below an example of the simple subnet declarations
subnet4: []
# - subnet: 192.0.2.0/24
# next-server: 192.0.2.234
# pools:
# - pool: "192.0.2.1 - 192.0.2.200"
# reservations:
# - hw-address: "1a:1b:1c:1d:1e:1f"
# ip-address: 192.0.2.202
# - subnet: 192.0.3.0/24
# pools:
# - pool: "192.0.3.1 - 192.0.3.200"
# relay:
# ip-address: 10.0.0.1
# - subnet: 192.0.4.0/24
# pools:
# - pool: "192.0.4.1 - 192.0.4.200"
# option-data:
# - name: domain-name-servers
# data: "8.8.8.8, 8.8.4.4"
# - name: domain-name
# data: "{{ kea_dhcp_pri_domain_name }}"
# - name: tftp-server-name
# data: "tftp.{{ kea_dhcp_pri_domain_name }}"
# - name: boot-file-name
# data: pxelinux.0
# dhcp-ddns: []
# enable-updates: false
# qualifying-suffix: "{{ kea_dhcp_pri_domain_name }}"
# next-server: 0.0.0.0
# control-socket:
# socket-type: unix
# socket-name: /var/run/kea.socket
# Logging configuration starts here. It tells Kea servers to store
# all log messages (on severity INFO or more) in a file.
# debuglevel variable is used on DEBUG level only.
Logging:
loggers:
- name: kea-dhcp4
output_options:
- output: /var/log/kea-dhcp4.log
severity: INFO
debuglevel: 0
kea_dhcp_ctrl_config:
Control-agent:
http-host: 127.0.0.1
http-port: 8000
control-sockets:
dhcp4:
socket-type: unix
socket-name: "/tmp/kea4-ctrl-socket"
dhcp6:
socket-type: unix
socket-name: "/tmp/kea6-ctrl-socket"
d2:
socket-type: unix
socket-name: "/tmp/kea-ddns-ctrl-socket"
hooks-libraries: []
loggers:
- name: kea-ctrl-agent
output_options:
- output: stdout
pattern: "%-5p %m\n"
severity: INFO
debuglevel: 0
# Defines Kea DHCP RedHat services should be enabled
# kea_dhcp_redhat_services:
# - name: kea-dhcp-ddns
# enabled: true
# - name: kea-dhcp4
# enabled: true
# - name: kea-dhcp6
# enabled: false
# Defines primary domain name of environment
kea_dhcp_pri_domain_name: vagrant.local
kea_dhcp_repos: https://dl.cloudsmith.io/public/isc
kea_dhcp_version: 1.7