Sha256: b1f75eccb6741d11a7a6dadaf41903924c88827d41f7348ffa77fcaf7bb49549

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

#!ipxe
# Example foreman_bootdisk host template
# This template is rendered for use inside a host-specific boot disk.
#
# Copy this template to customize it, the original is read-only.

# TODO: loop over net* until the host's MAC matches
ifopen net0
set net0/ip <%= @host.ip %>
set net0/netmask <%= @host.subnet.mask %>
set net0/gateway <%= @host.subnet.gateway %>
route

# Note, iPXE can only use one DNS server
set dns <%= @host.subnet.dns_primary %> <%= @host.subnet.dns_secondary %>
set net0/dns ${dns}
set domain <%= @host.domain.to_s %>

# Chainload from Foreman rather than embedding OS info here, so the behaviour
# is entirely dynamic.
chain <%= foreman_url("gPXE") %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_bootdisk-1.2.3 app/views/bootdisk/host_v1.erb
foreman_bootdisk-1.2.2 app/views/bootdisk/host_v1.erb
foreman_bootdisk-1.2.1 app/views/bootdisk/host_v1.erb
foreman_bootdisk-1.2.0 app/views/bootdisk/host_v1.erb
foreman_bootdisk-1.1.0 app/views/bootdisk/host_v1.erb