2020-11-13 21:11:56 +00:00
|
|
|
files = {
|
|
|
|
'/etc/dhcp/dhcpd.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'context': {
|
2020-11-15 11:01:32 +00:00
|
|
|
'dhcp_config': node.metadata['dhcpd'],
|
2020-11-13 21:11:56 +00:00
|
|
|
},
|
|
|
|
'needs': {
|
2020-11-13 22:30:21 +00:00
|
|
|
'pkg_apt:isc-dhcp-server'
|
2020-11-13 21:11:56 +00:00
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:isc-dhcp-server:restart',
|
|
|
|
},
|
|
|
|
},
|
2020-11-13 22:30:21 +00:00
|
|
|
'/etc/default/isc-dhcp-server': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:isc-dhcp-server'
|
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:isc-dhcp-server:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-11-15 10:40:33 +00:00
|
|
|
actions = {
|
|
|
|
# needed for dhcp-lease-list
|
|
|
|
'dhcpd_download_oui.txt': {
|
|
|
|
'command': 'wget http://standards-oui.ieee.org/oui.txt -O /usr/local/etc/oui.txt',
|
|
|
|
'unless': 'test -f /usr/local/etc/oui.txt',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-11-13 22:30:21 +00:00
|
|
|
svc_systemd = {
|
|
|
|
'isc-dhcp-server': {
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:isc-dhcp-server',
|
|
|
|
'file:/etc/dhcp/dhcpd.conf',
|
|
|
|
'file:/etc/default/isc-dhcp-server',
|
|
|
|
},
|
|
|
|
},
|
2020-11-13 21:11:56 +00:00
|
|
|
}
|