puppet-ironic/templates/inspector_ipxe.erb
Xingchao Yu 6071888f14 Make kernel and ramdisk filename configurable
This patch add two params in inspector_pxelinux_cfg template,
to make kernel and ramdisk filename configurable.

Change-Id: I5a421cd6135d001763e4d83da778ab33e5b1baca
2017-05-05 09:31:26 +08:00

8 lines
678 B
Plaintext

#!ipxe
:retry_boot
imgfree
kernel <% if @ipxe_timeout_real != "0" %>--timeout <%= Integer(@ipxe_timeout_real) * 1000 %> <% end %>http://<%= @dnsmasq_local_ip %>:<%= @http_port_real %>/<%= @kernel_filename %> ipa-inspection-callback-url=http://<%= @dnsmasq_local_ip %>:5050/v1/continue ipa-inspection-collectors=<%= @ramdisk_collectors %> systemd.journald.forward_to_console=yes BOOTIF=${mac} <%= @ramdisk_kernel_args %> initrd=<%= @ramdisk_filename %> || goto retry_boot
initrd <% if @ipxe_timeout_real != "0" %>--timeout <%= Integer(@ipxe_timeout_real) * 1000 %> <% end %>http://<%= @dnsmasq_local_ip %>:<%= @http_port_real %>/<%= @ramdisk_filename %> || goto retry_boot
boot