mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 23:10:22 +07:00
21 lines
818 B
Django/Jinja
21 lines
818 B
Django/Jinja
option space pxelinux;
|
|
option pxelinux.magic code 208 = string;
|
|
option pxelinux.configfile code 209 = text;
|
|
option pxelinux.pathprefix code 210 = text;
|
|
option pxelinux.reboottime code 211 = unsigned integer 32;
|
|
option architecture-type code 93 = unsigned integer 16;
|
|
|
|
subnet {{ ansible_default_ipv4.network }} netmask {{ ansible_default_ipv4.netmask }} {
|
|
option routers {{ ansible_default_ipv4.gateway }};
|
|
range {{ ansible_default_ipv4.gateway | ansible.netcommon.ipmath(1) }} {{ ansible_default_ipv4.broadcast | ansible.netcommon.ipmath(-1) }};
|
|
|
|
class "pxeclients" {
|
|
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
|
|
next-server {{ ansible_default_ipv4.address }};
|
|
|
|
if option architecture-type = 00:07 {
|
|
filename "grubx64.efi";
|
|
}
|
|
}
|
|
}
|