first commit
This commit is contained in:
20
templates/dhcpd.conf.j2
Normal file
20
templates/dhcpd.conf.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
subnet {{ os4_pxe_install_server_address | ipaddr('network') }} netmask {{ os4_pxe_install_server_address | ipaddr('netmask') }} {
|
||||
option domain-name-servers {{ os4_pxe_install_server_nameserver }};
|
||||
option domain-name "ocp01.lab.vargen.io";
|
||||
option routers {{ os4_pxe_install_server_gateway }};
|
||||
option broadcast-address {{ os4_pxe_install_server_address | ipaddr('broadcast') }};
|
||||
|
||||
next-server {{ os4_pxe_install_server_address | ipaddr('address') }};
|
||||
filename "pxelinux.0";
|
||||
|
||||
{% for host in os4_pxe_install_server_clients -%}
|
||||
|
||||
host {{ host.hostname }} {
|
||||
hardware ethernet {{ host.mac | upper }};
|
||||
option host-name "{{ host.hostname }}";
|
||||
fixed-address {{ host.ip }};
|
||||
}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user