2020-11-13 21:11:56 +00:00
|
|
|
files = {
|
|
|
|
'/etc/dhcp/dhcpd.conf': {
|
|
|
|
'content_type': 'mako',
|
|
|
|
'context': {
|
|
|
|
'dhcp_config': node.metadata.get('dhcpd'),
|
|
|
|
},
|
|
|
|
'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',
|
|
|
|
'context': {
|
|
|
|
'listen_interfaces': node.metadata.get('dhcpd', {}).get('listen_interfaces'),
|
|
|
|
},
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:isc-dhcp-server'
|
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:isc-dhcp-server:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
2020-11-13 22:30:21 +00:00
|
|
|
|