From 857df58f09deea7702dd26431dd38c800ad54124 Mon Sep 17 00:00:00 2001 From: GROUX Richard Date: Fri, 4 Oct 2024 16:23:43 +0200 Subject: [PATCH] feat: add custom option space --- dhcpd/files/dhcpd.conf | 4 ++++ pillar.example | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/dhcpd/files/dhcpd.conf b/dhcpd/files/dhcpd.conf index 583ba73..fcbe7fa 100644 --- a/dhcpd/files/dhcpd.conf +++ b/dhcpd/files/dhcpd.conf @@ -9,7 +9,11 @@ # Customized dhcp options {%- for name, data in dhcpd.customized_options.items() %} +{%- if data.type == "space" %} +option space {{ name|replace('_', '-') }}; +{%- else %} option {{ name|replace('_', '-') }} code {{ data.code }} = {{ data.type }}; +{%- endif %} {%- endfor %} # option definitions common to all supported networks... diff --git a/pillar.example b/pillar.example index 37796ed..25677ab 100644 --- a/pillar.example +++ b/pillar.example @@ -170,3 +170,9 @@ dhcpd: auto_proxy_config: code: 252 type: string + # set namespace for an ipxe option + ipxe: + type: space + ipxe.no-pxedhcp: + code: 176 + type: unsigned integer 8