aboutsummaryrefslogtreecommitdiff
path: root/configs/example-templates-configs/ipxe/centos.ipxe.slc
blob: a884a7658619ec9d588102a742ad6ea779f9c965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{define "centos.ipxe" -}}
#!ipxe
set hostname {{.hostname}}
set release {{.release}}  
set base http://mirror.centos.org/centos/${release}/os/x86_64

echo This automatically overwrites data!
echo CentOS ${release}
echo Installing ${hostname}

kernel ${base}/images/pxeboot/vmlinuz initrd=initrd.img repo=${base} ks=http://{{.baseURL}}/configs/centos.ks?hostname=$hostname&release=$release
initrd ${base}/images/pxeboot/initrd.img
boot
{{end}}
nihil fit ex nihilo