diff --git a/templates/dhcpd_conf.j2 b/templates/dhcpd_conf.j2 index e9d1b2d..76d01ca 100644 --- a/templates/dhcpd_conf.j2 +++ b/templates/dhcpd_conf.j2 @@ -29,4 +29,14 @@ subnet {{ dhcp_networks[dhcp_deploy_to].subnet }} netmask {{ dhcp_networks[dhcp_ filename "{{ dhcp_pxeboot_file }}"; next-server {{ dhcp_networks[dhcp_deploy_to].pxeboot }}; + +### STATIC ASSIGNMENTS ### +{% for host in static_assignments %} + host {{ host }} + { + hardware ethernet {{ static_assignments[host]['mac_address'] }}; + fixed-address {{ static_assignments[host]['ip_address'] }}; + } +{% endfor %} + }