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