first commit

This commit is contained in:
Nils Cant
2020-05-05 17:29:21 +02:00
commit 9f15fde015
8 changed files with 131 additions and 0 deletions

20
templates/dhcpd.conf.j2 Normal file
View File

@@ -0,0 +1,20 @@
subnet {{ os4_pxe_install_server_address | ipaddr('network') }} netmask {{ os4_pxe_install_server_address | ipaddr('netmask') }} {
option domain-name-servers {{ os4_pxe_install_server_nameserver }};
option domain-name "ocp01.lab.vargen.io";
option routers {{ os4_pxe_install_server_gateway }};
option broadcast-address {{ os4_pxe_install_server_address | ipaddr('broadcast') }};
next-server {{ os4_pxe_install_server_address | ipaddr('address') }};
filename "pxelinux.0";
{% for host in os4_pxe_install_server_clients -%}
host {{ host.hostname }} {
hardware ethernet {{ host.mac | upper }};
option host-name "{{ host.hostname }}";
fixed-address {{ host.ip }};
}
{% endfor %}
}

View File

@@ -0,0 +1,6 @@
DEFAULT pxeboot
TIMEOUT 20
PROMPT 0
LABEL pxeboot
KERNEL http://{{ os4_pxe_install_server_address | ipaddr('address') }}:{{ os4_pxe_install_server_httpd_port }}/rhcos-4.3.0-x86_64-installer-kernel
APPEND ip=dhcp rd.neednet=1 initrd=http://{{ os4_pxe_install_server_address | ipaddr('address') }}:{{ os4_pxe_install_server_httpd_port }}/rhcos-4.3.0-x86_64-installer-initramfs.img console=tty0 console=ttyS0 coreos.inst=yes coreos.inst.install_dev=vda coreos.inst.image_url=http://{{ os4_pxe_install_server_address | ipaddr('address') }}:{{ os4_pxe_install_server_httpd_port }}/rhcos-4.3.0-x86_64-metal.raw.gz coreos.inst.ignition_url=http://{{ os4_pxe_install_server_address | ipaddr('address') }}:{{ os4_pxe_install_server_httpd_port }}/{{ item.ignition }}

13
templates/tftp.j2 Normal file
View File

@@ -0,0 +1,13 @@
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}