Created
June 7, 2018 14:15
-
-
Save quadriq/6f1982bfd31efd65793462982a7e7e05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# | |
kind: PXELinux | |
name: PXELinux Kickstart Global | |
oses: | |
- CentOS | |
- RedHat | |
- RHEL | |
- Scientific | |
%> | |
DEFAULT linux | |
<% if @host.params['cluster'] && @host.params['cluster'] == "mycluster" -%> | |
<% syslogstring = "syslog=" [email protected]_interface.ip.split('.').at(0) + "." + @host.provision_interface.ip.split('.').at(1) + "." [email protected]_interface.ip.split('.').at(2) + ".200" -%> | |
<% elsif @host.params['loghostip'] -%> | |
<% syslogstring = @host.params['loghostip'] -%> | |
<% else -%> | |
<% syslogstring = nil -%> | |
<% end -%> | |
LABEL linux | |
KERNEL <%= @kernel %> | |
<% if @host.operatingsystem.name == 'Fedora' and @host.operatingsystem.major.to_i > 16 -%> | |
APPEND initrd=<%= @initrd %> ks=<%= foreman_url('provision')%> ks.device=bootif network ks.sendmac | |
<% elsif @host.operatingsystem.name != 'Fedora' and @host.operatingsystem.major.to_i >= 7 -%> | |
APPEND initrd=<%= @initrd %> biosdevname=0 ks=<%= foreman_url('provision')%> network ks.sendmac <%= syslogstring %> modprobe.blacklist=bfa modprobe.blacklist=lpfc modprobe.blacklist=qla2xxx <%= @host.params['kickstart_modprobe_blacklist'] ? @host.params['kickstart_modprobe_blacklist'].split(" ").map{|item| ' modprobe.blacklist='+item}.join : "" %> | |
<% else -%> | |
APPEND initrd=<%= @initrd %> biosdevname=0 ks=<%= foreman_url('provision')%> ksdevice=bootif network kssendmac <%= syslogstring %> blacklist=bfa blacklist=lpfc blacklist=qla2xxx <%= @host.params['kickstart_modprobe_blacklist'] ? @host.params['kickstart_modprobe_blacklist'].split(" ").map{|item| ' blacklist='+item}.join : "" %> | |
<% end -%> | |
IPAPPEND 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment