Franziska Kunsmann
24362768fb
All checks were successful
bundlewrap/pipeline/head This commit looks good
41 lines
985 B
Python
41 lines
985 B
Python
files = {
|
|
'/etc/dhcp/dhcpd.conf': {
|
|
'content_type': 'mako',
|
|
'context': {
|
|
'dhcp_config': node.metadata['dhcpd'],
|
|
},
|
|
'needs': {
|
|
'pkg_apt:isc-dhcp-server'
|
|
},
|
|
'triggers': {
|
|
'svc_systemd:isc-dhcp-server:restart',
|
|
},
|
|
},
|
|
'/etc/default/isc-dhcp-server': {
|
|
'content_type': 'mako',
|
|
'needs': {
|
|
'pkg_apt:isc-dhcp-server'
|
|
},
|
|
'triggers': {
|
|
'svc_systemd:isc-dhcp-server:restart',
|
|
},
|
|
},
|
|
}
|
|
|
|
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',
|
|
},
|
|
}
|
|
|
|
svc_systemd = {
|
|
'isc-dhcp-server': {
|
|
'needs': {
|
|
'pkg_apt:isc-dhcp-server',
|
|
'file:/etc/dhcp/dhcpd.conf',
|
|
'file:/etc/default/isc-dhcp-server',
|
|
},
|
|
},
|
|
}
|