-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpxe_global_default
37 lines (31 loc) · 1.57 KB
/
pxe_global_default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<%#
kind: PXELinux
name: PXELinux global default
%>
<%# This template has special name (do not change it) and it is used for booting unknown hosts. %>
DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 50
TOTALTIMEOUT 6000
ONTIMEOUT discovery
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL discovery
MENU LABEL Foreman Discovery2
MENU DEFAULT
KERNEL boot/fdi-image/vmlinuz0
APPEND initrd=boot/fdi-image/initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset foreman.url=http://10.30.0.2 fdi.rootpw=helsinki
IPAPPEND 2
<% for profile in @profiles -%>
LABEL <%= "#{profile[:template]} - #{profile[:hostgroup]}" %>
kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>
<% case profile[:hostgroup].operatingsystem.pxe_type -%>
<% when 'kickstart' -%>
append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac
<% when 'preseed' -%>
append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> interface=auto url=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname locale=<%= profile[:hostgroup].params['lang'] || 'en_US' %> console-setup/ask_detect=false console-setup/layout=USA console-setup/variant=USA
<% end -%>
<% end -%>