--- step
initialize
--- omapi
["connect", "dhcp01", 7911, "b'omapi_key'", "b'c2VjcmV0'"]
--- omapi
["query", "group", [], [["name", "ipxe"]]]
--- omapi
["add_group", ["ipxe", "if exists user-class and option user-class = /"iPXE/" { filename /"boot.ipxe/"; }"], {}]
--- omapi
["del_host", ["aa:bb:cc:dd:ee:ff"], {}]
--- omapi
["query", "host", [["create", "00000001"], ["exclusive", "00000001"]], [["name", "web01"], ["hardware-address", "aa:bb:cc:dd:ee:ff"], ["hardware-type", "00000001"], ["ip-address", "10.0.0.10"], ["group", "ipxe"], ["statements", "option routers 10.0.0.1; option domain-name-servers 10.0.0.53, 10.0.0.54; option domain-name /"example.com/"; option domain-search /"example.com/"; option subnet-mask 255.255.255.0; option broadcast-address 10.0.0.255; next-server 10.0.0.2; if (exists user-class and option user-class = /"iPXE/") { } else { filename /"undionly.kpxe/"; }"]]]
--- omapi
["close", [], {}]
--- step
complete
--- omapi
["connect", "dhcp01", 7911, "b'omapi_key'", "b'c2VjcmV0'"]
--- omapi
["del_host", ["aa:bb:cc:dd:ee:ff"], {}]
--- omapi
["query", "host", [["create", "00000001"], ["exclusive", "00000001"]], [["name", "web01"], ["hardware-address", "aa:bb:cc:dd:ee:ff"], ["hardware-type", "00000001"], ["ip-address", "10.0.0.10"], ["statements", "option routers 10.0.0.1; option domain-name-servers 10.0.0.53, 10.0.0.54; option domain-name /"example.com/"; option domain-search /"example.com/"; option subnet-mask 255.255.255.0; option broadcast-address 10.0.0.255; filename /"undionly.kpxe/"; next-server 10.0.0.2;"]]]
--- omapi
["close", [], {}]
--- omapi
["connect", "dhcp01", 7911, "b'omapi_key'", "b'c2VjcmV0'"]
--- omapi
["del_host", ["aa:bb:cc:dd:ee:ff"], {}]
--- omapi
["query", "host", [["create", "00000001"], ["exclusive", "00000001"]], [["name", "web01"], ["hardware-address", "aa:bb:cc:dd:ee:ff"], ["hardware-type", "00000001"], ["ip-address", "10.0.0.10"], ["statements", "option routers 10.0.0.1; option domain-name-servers 10.0.0.53, 10.0.0.54; option domain-name /"example.com/"; option domain-search /"example.com/"; option subnet-mask 255.255.255.0; option broadcast-address 10.0.0.255; filename /"sanboot.ipxe/";"]]]
--- omapi
["close", [], {}]
--- recipes
# netboot: add to dhcpd.conf so 'ipxe' need not be created over OMAPI
group "ipxe" {
  if exists user-class and option user-class = "iPXE" { filename "boot.ipxe"; }
}
