Showing with 20 additions and 2 deletions.
  1. +8 −0 CHANGELOG.md
  2. +1 −1 metadata.json
  3. +4 −0 spec/classes/init_spec.rb
  4. +7 −1 templates/dhcpd.conf.erb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [5.1.0](https://github.com/theforeman/puppet-dhcp/tree/5.1.0) (2019-10-24)

[Full Changelog](https://github.com/theforeman/puppet-dhcp/compare/5.0.1...5.1.0)

**Implemented enhancements:**

- Added UEFI HTTP Boot support [\#160](https://github.com/theforeman/puppet-dhcp/pull/160) ([lzap](https://github.com/lzap))

## [5.0.1](https://github.com/theforeman/puppet-dhcp/tree/5.0.1) (2019-06-12)

[Full Changelog](https://github.com/theforeman/puppet-dhcp/compare/5.0.0...5.0.1)
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-dhcp",
"version": "5.0.1",
"version": "5.1.0",
"author": "theforeman",
"summary": "Manage the ISC DHCP daemon",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
'option interface-mtu 9000;',
'option provision-url code 224 = text;',
'option provision-type code 225 = text;',
'if substring(option vendor-class-identifier, 0, 10) = "HTTPClient" {',
' option vendor-class-identifier "HTTPClient";',
'}',
'set vendor-string = option vendor-class-identifier;',
'next-server 10.0.0.5;',
'option architecture code 93 = unsigned integer 16 ;',
'if option architecture = 00:00 {',
Expand Down
8 changes: 7 additions & 1 deletion templates/dhcpd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ option <%= option %>;
<% end -%>
<% if @pxeserver && @pxefilename -%>
# Bootfile Handoff
# required for UEFI HTTP boot
if substring(option vendor-class-identifier, 0, 10) = "HTTPClient" {
option vendor-class-identifier "HTTPClient";
}
# promote vendor in dhcpd.leases
set vendor-string = option vendor-class-identifier;
# next server and filename options
next-server <%= @pxeserver %>;
<% unless @bootfiles.empty?
bootf = @bootfiles.sort_by { |arch, file| arch } -%>
Expand Down