make tftp default file per site

This commit is contained in:
Stephen Smoogen 2014-08-27 00:55:42 +00:00
parent 7dd4ea9832
commit f875a0fbd2
4 changed files with 177 additions and 1 deletions

View file

@ -0,0 +1,88 @@
DEFAULT menu
MENU TITLE Fedora Infrastructure PXE Boot
PROMPT 0
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL EL-7-nohd
MENU LABEL el7nohd
KERNEL images/RHEL/7/x86_64/vmlinuz
APPEND initrd=images/RHEL/7/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL7-x86_64/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-rhel-7-nohd net.ifnames=0 biosdevname=0
LABEL EL-6Rescue
MENU LABEL el6rescue
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ip=dhcp nomodeset rescue
LABEL EL-6Builder
MENU LABEL ^el6builder
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/rhel-6-builder
LABEL EL-6virthost
MENU LABEL el6virthost
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-rhel-6-nohd
LABEL EL-6buildvmhost
MENU LABEL el6buildvmhost
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/buildvmhost-novnc
LABEL EL6novnc-nohd
MENU LABEL EL-6novnc-nohd
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-rhel-6-novnc
LABEL EL6cloud
MENU LABEL EL-6cloud
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://209.132.181.6/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-rhel-6-cloud
LABEL QA-Fed20-x86_64
MENU LABEL QA-Fedora20-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.124.210/ks/f20-virthost-infra.ks
LABEL Fed20-x86_64
MENU LABEL Fedora20-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-f20.cfg vnc vncpassword=vncinstall nomodeset
LABEL Fed20-x86_64-novnc
MENU LABEL Fedora20-x86_64-novnc
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-f20.cfg nomodeset
LABEL Fed20-x86_64-buildhw
MENU LABEL Fedora20-x86_64-buildhw
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/buildhw-fedora-20 text net.ifnames=0
LABEL Fed20-x86_64-osbuild
MENU LABEL Fedora20-x86_64-osbuild
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-osbuild.cfg text net.ifnames=0 nomodeset
LABEL Fed20-Rescue-x86_64
MENU LABEL Fedora-20-Rescue-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND initrd=images/Fedora/20/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp nomodeset rescue
LABEL Fed19-x86_64
MENU LABEL Fedora19-x86_64
KERNEL images/Fedora/19/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/19/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/19/Fedora/x86_64/os/ ip=dhcp ks=http://209.132.181.6/repo/rhel/ks/hardware-f19.cfg vnc vncpassword=vncinstall nomodeset
LABEL Fed19-Rescue-x86_64
MENU LABEL Fedora-19-Rescue-x86_64
KERNEL images/Fedora/19/x86_64/vmlinuz
APPEND initrd=images/Fedora/19/x86_64/initrd.img method=http://209.132.181.6/pub/fedora/linux/releases/19/Fedora/x86_64/os/ ip=dhcp nomodeset rescue
MENU end

View file

@ -0,0 +1,88 @@
DEFAULT menu
MENU TITLE Fedora Infrastructure PXE Boot
PROMPT 0
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL EL-7-nohd
MENU LABEL el7nohd
KERNEL images/RHEL/7/x86_64/vmlinuz
APPEND initrd=images/RHEL/7/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL7-x86_64/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-rhel-7-nohd net.ifnames=0 biosdevname=0
LABEL EL-6Rescue
MENU LABEL el6rescue
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ip=dhcp nomodeset rescue
LABEL EL-6Builder
MENU LABEL ^el6builder
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/rhel-6-builder
LABEL EL-6virthost
MENU LABEL el6virthost
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-rhel-6-nohd
LABEL EL-6buildvmhost
MENU LABEL el6buildvmhost
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/buildvmhost-novnc
LABEL EL6novnc-nohd
MENU LABEL EL-6novnc-nohd
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-rhel-6-novnc
LABEL EL6cloud
MENU LABEL EL-6cloud
KERNEL images/RHEL/6/x86_64/vmlinuz
APPEND ks initrd=images/RHEL/6/x86_64/initrd.img method=http://10.5.126.23/repo/rhel/RHEL6-x86_64/ ksdevice=eth0 ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-rhel-6-cloud
LABEL QA-Fed20-x86_64
MENU LABEL QA-Fedora20-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.124.210/ks/f20-virthost-infra.ks
LABEL Fed20-x86_64
MENU LABEL Fedora20-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-f20.cfg vnc vncpassword=vncinstall nomodeset
LABEL Fed20-x86_64-novnc
MENU LABEL Fedora20-x86_64-novnc
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-f20.cfg nomodeset
LABEL Fed20-x86_64-buildhw
MENU LABEL Fedora20-x86_64-buildhw
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/buildhw-fedora-20 text net.ifnames=0
LABEL Fed20-x86_64-osbuild
MENU LABEL Fedora20-x86_64-osbuild
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-osbuild.cfg text net.ifnames=0 nomodeset
LABEL Fed20-Rescue-x86_64
MENU LABEL Fedora-20-Rescue-x86_64
KERNEL images/Fedora/20/x86_64/vmlinuz
APPEND initrd=images/Fedora/20/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/20/Fedora/x86_64/os/ ip=dhcp nomodeset rescue
LABEL Fed19-x86_64
MENU LABEL Fedora19-x86_64
KERNEL images/Fedora/19/x86_64/vmlinuz
APPEND ks initrd=images/Fedora/19/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/19/Fedora/x86_64/os/ ip=dhcp ks=http://10.5.126.23/repo/rhel/ks/hardware-f19.cfg vnc vncpassword=vncinstall nomodeset
LABEL Fed19-Rescue-x86_64
MENU LABEL Fedora-19-Rescue-x86_64
KERNEL images/Fedora/19/x86_64/vmlinuz
APPEND initrd=images/Fedora/19/x86_64/initrd.img method=http://10.5.126.23/pub/fedora/linux/releases/19/Fedora/x86_64/os/ ip=dhcp nomodeset rescue
MENU end

View file

@ -18,7 +18,7 @@
- tftp_server
- name: setup pxelinux.cfg default file
copy: src=default dest=/var/lib/tftpboot/pxelinux.cfg/default mode=644
copy: src=default.{{ inventory_hostname }} dest=/var/lib/tftpboot/pxelinux.cfg/default mode=644
tags:
- config
- tftp_server