Sha256: ce1c5489a429fdf27321b0d8fcfb97d34784b9b25f055807f90de9fa105788ed
Contents?: true
Size: 992 Bytes
Versions: 6
Compression:
Stored size: 992 Bytes
Contents
<%# name: Boot disk iPXE - generic static host snippet: false model: ProvisioningTemplate kind: Bootdisk description: | Generic host template with interactive static IP configuration. Tokens must be disabled in order to access templates via MAC addresses. -%> #!ipxe <% (0..32).each do |i| -%> :net<%= i %> isset ${net<%= i -%>/mac} || goto configure echo Found ${net<%= i -%>/mac} as net<%= i -%> on a ${net<%= i -%>/chip} goto net<%= i+1 %> <% end -%> :configure echo -n Interface (e.g. net0): && read interface iseq ${interface} n && goto reboot || iseq ${interface} N && goto reboot || ifopen ${interface} echo Please enter IPv4 details for ${interface} echo echo -n IP address: && read ${interface}/ip echo -n Subnet mask: && read ${interface}/netmask echo -n Default gateway: && read ${interface}/gateway echo -n DNS server: && read dns chain <%= bootdisk_chain_url %>${${interface}/mac} || goto reboot exit 0 :reboot echo Unable to continue, rebooting... sleep 30 exit 1
Version data entries
6 entries across 6 versions & 1 rubygems