Sha256: 88f17df32f9831813fc9c2f97d28ea931a48c15d0bba4731f9803ba064b558c5

Contents?: true

Size: 775 Bytes

Versions: 15

Compression:

Stored size: 775 Bytes

Contents

#!ipxe
# Example foreman_bootdisk generic host template
#
# This template is generic, but it will chainload to Foreman so expects the
# host to be registered already.
#
# It loops through all interfaces using DHCP, requesting a template from
# Foreman in the hope that one of the MACs or IPs matches.
#
# Copy this template to customize it, the original is read-only.

# loop over net* until we can get a template
<% (0..32).each do |i| -%>
:net<%= i %>
isset ${net<%= i -%>/mac} || goto no_nic
echo net<%= i -%> is a ${net<%= i -%>/chip} with MAC ${net<%= i -%>/mac}
dhcp net<%= i %> || goto net<%= i+1 %>
chain <%= bootdisk_chain_url %>${net<%= i -%>/mac} || goto net<%= i+1 %>
exit 0
<% end -%>

:no_nic
echo Failed to chainload from any network interface
sleep 30
exit 1

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_bootdisk-6.0.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-5.0.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-4.0.2 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-4.0.1 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.2.1 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-4.0.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.2.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.1.2 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.1.1 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.1.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-3.0.0 app/views/foreman_bootdisk/generic_host.erb
foreman_bootdisk-2.0.8 app/views/bootdisk/generic_host.erb
foreman_bootdisk-2.0.7 app/views/bootdisk/generic_host.erb
foreman_bootdisk-2.0.6 app/views/bootdisk/generic_host.erb
foreman_bootdisk-2.0.5 app/views/bootdisk/generic_host.erb