Merge auto deployment of PXE, TFTP and DHCP

This commit is contained in:
nnag 2024-10-15 21:44:09 +07:00
parent 1e0cc5bc5c
commit a0db459382
39 changed files with 4751 additions and 153 deletions

BIN
.mac-lists.csv.swo Normal file

Binary file not shown.

BIN
.pxelinux-generator.sh.swp Normal file

Binary file not shown.

40
Dockerfile Normal file
View File

@ -0,0 +1,40 @@
FROM alpine:3.20.3
LABEL maintainer "ferrari.marco@gmail.com"
# Install the necessary packages
RUN apk add --no-cache \
dnsmasq \
wget
ENV MEMTEST_VERSION 5.31b
ENV SYSLINUX_VERSION 6.03
ENV TEMP_SYSLINUX_PATH /tmp/syslinux-"$SYSLINUX_VERSION"
WORKDIR /tmp
RUN \
mkdir -p "$TEMP_SYSLINUX_PATH" \
&& wget -q https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-"$SYSLINUX_VERSION".tar.gz \
&& tar -xzf syslinux-"$SYSLINUX_VERSION".tar.gz \
&& mkdir -p /var/lib/tftpboot \
&& cp "$TEMP_SYSLINUX_PATH"/bios/core/pxelinux.0 /var/lib/tftpboot/ \
&& cp "$TEMP_SYSLINUX_PATH"/bios/com32/libutil/libutil.c32 /var/lib/tftpboot/ \
&& cp "$TEMP_SYSLINUX_PATH"/bios/com32/elflink/ldlinux/ldlinux.c32 /var/lib/tftpboot/ \
&& cp "$TEMP_SYSLINUX_PATH"/bios/com32/menu/menu.c32 /var/lib/tftpboot/ \
&& rm -rf "$TEMP_SYSLINUX_PATH" \
&& rm /tmp/syslinux-"$SYSLINUX_VERSION".tar.gz \
&& wget -q http://www.memtest.org/download/archives/"$MEMTEST_VERSION"/memtest86+-"$MEMTEST_VERSION".bin.gz \
&& gzip -d memtest86+-"$MEMTEST_VERSION".bin.gz \
&& mkdir -p /var/lib/tftpboot/memtest \
&& mv memtest86+-$MEMTEST_VERSION.bin /var/lib/tftpboot/memtest/memtest86+
# Configure PXE and TFTP
COPY pxelinux/ /var/lib/tftpboot
# Configure DNSMASQ
COPY etc/ /etc
# Start dnsmasq. It picks up default configuration from /etc/dnsmasq.conf and
# /etc/default/dnsmasq plus any command line switch
ENTRYPOINT ["dnsmasq", "--no-daemon"]
#CMD ["--dhcp-range=192.169.22.1,proxy"]

18
dhcpd/dhcpd.conf Normal file
View File

@ -0,0 +1,18 @@
authoritative;
ddns-update-style interim;
allow booting;
allow bootp;
allow unknown-clients;
ignore client-updates;
default-lease-time 14400;
max-lease-time 14400;
subnet 192.169.22.0 netmask 255.255.255.0 {
option routers 192.169.22.1; # lan
option subnet-mask 255.255.255.0;
option domain-name "ocp.lan";
option domain-name-servers 192.169.22.1;
# range 192.169.22.80 192.169.22.99;
next-server 192.169.22.1;
filename "pxelinux/pxelinux.0";
}

33
docker-compose.yaml Normal file
View File

@ -0,0 +1,33 @@
version: '2'
services:
pxe-boot:
container: pxe-boot
image: localhost/pxe-boot:latest
network_mode: host
volumes:
- ./tftpd_boot/rhcos:/var/lib/tftpboot/boot:z
privileged:
- true
pxe-nginx:
container: pxe-nginx
image: nginx:stable
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:Z
- ./tftpd_boot:/var/www/default/boot:Z
ports:
- 8080:8080
ocp-haproxy:
container: ocp-haproxy
image: haproxy:2.7
volumes:
- ./etc/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:Z
privileged:
- true
network_mode: host
ports:
- "80:80"
- "443:443" # haproxy admin console, login with user:pass
- "6443:6443" # haproxy admin console, login with user:pass
- "9000:9000" # haproxy admin console, login with user:pass
- "22623:22623"

1555
dump/.openshift_install.log Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
bEI6o-x8rtd-UGLZY-J6Dbz

19
dump/auth/kubeconfig Normal file

File diff suppressed because one or more lines are too long

1
dump/bootstrap.ign Normal file

File diff suppressed because one or more lines are too long

1
dump/master.ign Normal file
View File

@ -0,0 +1 @@
{"ignition":{"config":{"merge":[{"source":"https://api-int.ustda.tiplab.lan:22623/config/master"}]},"security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VwamkvSTRia1h1WFEyaWhwMlN4c1ozZExRSDVKWkk1VzRUc3lrVTJrCmhvNFpoN214NktXeHk3R3AyOTBZR3NXR2s1R0JYQmpySHZ1c3RES3ZDeXQrQTNYTGUySW83aTlENGtyQ2JoYTAKZ2U2ZFErRWE3Uk1DVUV0N2FCb29LTE5tZVo1clpKb2Q2NmtOWTdVM1JURkZOSFZFRERRRURzWXpYNzVYejlWcwo2OU1sNW9PakhkbTN5dmdGenQwQ1VoZk1WYWMyMnFYY2Nacm5DSHgwVlIzOU15bklGWUdtREJxNEdhZnEvTVdpCjlCNEwyWjdHY0Yzdkt2MFpLQllPa1BKM1JaZ0Z4UnY4OEtnL2lGRm9lUkpDZHNML2pkWDB3M0FRNlBybHlxSDYKLzdhZXNYbHV4eXVFNzNqYS9XbnZ6aXdjOFM0PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="}]}},"version":"3.2.0"}}

1
dump/metadata.json Normal file
View File

@ -0,0 +1 @@
{"clusterName":"ustda","clusterID":"cb563fc4-1da3-4bac-99a9-0160f16efbd3","infraID":"ustda-nkqfb","featureSet":"","customFeatureSet":null}

1
dump/worker.ign Normal file
View File

@ -0,0 +1 @@
{"ignition":{"config":{"merge":[{"source":"https://api-int.ustda.tiplab.lan:22623/config/worker"}]},"security":{"tls":{"certificateAuthorities":[{"source":"data:text/plain;charset=utf-8;base64,LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURFRENDQWZpZ0F3SUJBZ0lJU3NLU0pjUi85dkV3RFFZSktvWklodmNOQVFFTEJRQXdKakVTTUJBR0ExVUUKQ3hNSmIzQmxibk5vYVdaME1SQXdEZ1lEVlFRREV3ZHliMjkwTFdOaE1CNFhEVEkwTVRBd09URTBOVEEwTlZvWApEVE0wTVRBd056RTBOVEEwTlZvd0pqRVNNQkFHQTFVRUN4TUpiM0JsYm5Ob2FXWjBNUkF3RGdZRFZRUURFd2R5CmIyOTBMV05oTUlJQklqQU5CZ2tx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GRm9lUkpDZHNML2pkWDB3M0FRNlBybHlxSDYKLzdhZXNYbHV4eXVFNzNqYS9XbnZ6aXdjOFM0PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="}]}},"version":"3.2.0"}}

BIN
etc/.dnsmasq.conf.swp Normal file

Binary file not shown.

1
etc/default/dnsmasq Normal file
View File

@ -0,0 +1 @@
DNSMASQ_EXCEPT=enp1s0

30
etc/dnsmasq.conf Normal file
View File

@ -0,0 +1,30 @@
#dhcp-host=00:27:02:13:be:6b,SolarEdge,192.168.1.20,3d
dhcp-host=52:54:00:8f:21:15,master-00,192.169.22.100,3d
dhcp-host=52:54:00:76:58:ce,master-01,192.169.22.101,3d
dhcp-host=52:54:00:28:55:ac,master-02,192.169.22.102,3d
dhcp-host=52:54:00:2e:b9:ad,worker-00,192.169.22.110,3d
dhcp-host=52:54:00:b7:d7:1d,worker-01,192.169.22.111,3d
dhcp-host=52:54:00:06:93:a4,worker-02,192.169.22.112,3d
dhcp-host=52:54:00:cf:50:05,bootstrap,192.169.22.10,3d
# Enable DHCP logging
log-dhcp
dhcp-boot=pxelinux.0
no-resolv
server=8.8.8.8
address=/.ustda.tiplab.lan/192.169.22.1
#cname=*.ustda.tiplab.lan,api.ustda.tiplab.lan
# Provide network boot option called "Network Boot"
pxe-service=x86PC,"Network Boot",pxelinux
dhcp-option=6,192.169.22.1
listen-address=192.169.22.1
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-range=192.169.22.100,192.169.22.200
# Run as root user
user=root

Binary file not shown.

97
etc/haproxy/haproxy.cfg Normal file
View File

@ -0,0 +1,97 @@
# Global settings
#---------------------------------------------------------------------
global
maxconn 20000
log /dev/log local0 info
#chroot /var/lib/haproxy
#pidfile /var/run/haproxy.pid
user haproxy
group haproxy
#daemon
# turn on stats unix socket
#stats socket /var/lib/haproxy/stats
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
log global
mode http
option httplog
option dontlognull
option http-server-close
option redispatch
option forwardfor except 127.0.0.0/8
retries 3
maxconn 20000
timeout http-request 10000ms
timeout http-keep-alive 10000ms
timeout check 10000ms
timeout connect 40000ms
timeout client 300000ms
timeout server 300000ms
timeout queue 50000ms
# Enable HAProxy stats
listen stats
bind :9000
stats uri /stats
stats refresh 10000ms
# Kube API Server
frontend k8s_api_frontend
bind *:6443
default_backend k8s_api_backend
mode tcp
backend k8s_api_backend
mode tcp
balance source
#option httpchk GET /readyz
#server ocp-bootstrap 192.169.22.10:6443 check
server ocp-cp-1 192.169.22.100:6443 check
server ocp-cp-2 192.169.22.101:6443 check
server ocp-cp-3 192.169.22.102:6443 check
# OCP Machine Config Server
frontend ocp_machine_config_server_frontend
mode tcp
bind :22623
default_backend ocp_machine_config_server_backend
backend ocp_machine_config_server_backend
mode tcp
balance source
#server ocp-bootstrap 192.169.22.10:22623 check
server ocp-cp-1 192.169.22.100:22623 check
server ocp-cp-2 192.169.22.101:22623 check
server ocp-cp-3 192.169.22.102:22623 check
# OCP Ingress - layer 4 tcp mode for each. Ingress Controller will handle layer 7.
frontend ocp_http_ingress_frontend
bind *:80
default_backend ocp_http_ingress_backend
mode tcp
backend ocp_http_ingress_backend
balance source
mode tcp
server ocp-w-1 192.169.22.110:80 check
server ocp-w-2 192.169.22.111:80 check
server ocp-w-3 192.169.22.112:80 check
#server ocp-w-5 192.169.22.215:80 check
frontend ocp_https_ingress_frontend
bind *:443
default_backend ocp_https_ingress_backend
mode tcp
backend ocp_https_ingress_backend
mode tcp
balance source
server ocp-w-1 192.169.22.110:443 check
server ocp-w-2 192.169.22.111:443 check
server ocp-w-3 192.169.22.112:443 check
#server ocp-w-5 192.169.22.215:443 check

24
inf-install.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: v1
baseDomain: tiplab.lan
compute:
- name: worker
replicas: 2
controlPlane:
name: master
replicas: 3
metadata:
name: ustda
networking:
clusterNetworks:
- cidr: 10.128.0.0/14
hostPrefix: 23
machineCIDR: 192.169.0.0/16
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
pullSecret: '{"auths":{"cloud.openshift.com":{"auth":"b3BlbnNoaWZ0LXJlbGVhc2UtZGV2K29jbV9hY2Nlc3NfOTFiYTMxNDExODExNGZiNGFlZDIwZmJhNjdkMmY2N2Q6Qk85M1BWT0ZBVFhZQzRGM1MxUEVWMlgzVVFHVzFDNjlINkMwWDNTNkY1UjEyNkxJNTNPUThPNU84RUNJTlhEMA==","email":"ninoagus@protonmail.com"},"quay.io":{"auth":"b3BlbnNoaWZ0LXJlbGVhc2UtZGV2K29jbV9hY2Nlc3NfOTFiYTMxNDExODExNGZiNGFlZDIwZmJhNjdkMmY2N2Q6Qk85M1BWT0ZBVFhZQzRGM1MxUEVWMlgzVVFHVzFDNjlINkMwWDNTNkY1UjEyNkxJNTNPUThPNU84RUNJTlhEMA==","email":"ninoagus@protonmail.com"},"registry.connect.redhat.com":{"auth":"fHVoYy1wb29sLTNkYjQ0NDk4LTcxNDEtNDUwYi05YjBmLTc3YjNlMWNhZWJmMTpleUpoYkdjaU9pSlNVelV4TWlKOS5leUp6ZFdJaU9pSXdOVGswWkdGbFpHUmxaVGMwTkRGaE9EQTFZVEptWXpZeE1XWmpNVGxoT0NKOS5IZ1pDN3EyLVNuLXFYV0w2a195RHFHQnRpcmYzVFkxM0E1ZTI5T1FRc0xiLVU2bFdPbjRkclFwN1dfMGsxNnZpTzYtaFU5dUkySlp6M1dIXzNYWDBINWJFeFRQblhoYkd3d2hXZnZGTzg3N3VNM0gwOEdHNFh6LTM5eDdLeHRxcktHN25Md1d1dThWNzFnaVMtamZQSkhMTEstWkg3US0yMzVNclI5alJOb3ZibU5qemVCMXkteTgyOTJWXzVkVnNpb0dtdFdZSm8wZTlzLXlsMWJkZ0tRX0xNb0RWbXk4WU52THFzQ0lLZV9lZ3ZZYTVwZ1lJQmVLMnNkNm14TW9sMFFTYWVxMFVnWU1MSTd3OThZSFEwM1h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ZYTVwZ1lJQmVLMnNkNm14TW9sMFFTYWVxMFVnWU1MSTd3OThZSFEwM1hzS0RyRGhCczJlc3BRdGdmSzVtUnYtd2dWd3lMUWlhaTdEQnZXQzZscDVJeXcxdTBnZi1icUJkcjVwYzZOelVJUWxSWWE1c1Z3R0d0c201amRIZlB0ZEUtQVVOVjR4VXJHLWJlVHp5QTc1TkpvZG91aVA0c09qVmNYNVZkbWx5Vk04cXpfc1hGWkRHendaa1EzQXlfSEc2aVZwWDRMQWNBRkc0YlZvREdPVXZjX3ZDc2h5MWV0QUlLMWdkczZIaG5oWGJTMlV3OE81aTJDVVBaV2NNb3UzcmppOC1QQ3NLelp0b0pSdzFNZVVFbnBmcmlDSGphVnVHc1lVN1M2U01sWUlJdmR6dmRRM1E5VUdZVlNNRml3SWo1eDRZdk5xYU1hcFp6SlRpQndWeUlRU19EVFZlWmx2dzVqY2YyMlJ4czEwNXRWVGYzcERkNUhrWnFuMmZPS3ZkaDZTYWRBOEZjN3VCaHIyYmF0SXAyd1pKcVlUVzVjWERtRmVvY2Y2dEtWLTQ5eHNlcWZlemRtNTI5ZWVZbw==","email":"ninoagus@protonmail.com"}}}'
sshKey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIb65epli0YhJNyJlbyWAgsfI679VCwwgT+R4LuAEuwU ninoagus@protonmail.com"

View File

@ -1,10 +1,7 @@
bootstrap,52:54:00:f1:d1:63,fcos-37,vda
master,52:54:00:70:f5:db,fcos-37,vda
master,52:54:00:1b:15:29,fcos-37,vda
master,52:54:00:47:1a:1b,fcos-37,vda
worker,52:54:00:84:b1:11,fcos-37,vda
worker,52:54:00:a1:55:1a,fcos-37,vda
worker,00:50:56:bb:f8:6d,fcos-37,sda
worker,52:54:00:5e:7c:d6,fcos-37,vda
worker,ac:1f:6b:ef:83:74,fcos-37,sda
worker,52:54:00:c0:d0:de,fcos-37,vda
master,52:54:00:8f:21:15,rhcos-4.17,vda
master,52:54:00:76:58:ce,rhcos-4.17,vda
master,52:54:00:28:55:ac,rhcos-4.17,vda
worker,52:54:00:2e:b9:ad,rhcos-4.17,vda
worker,52:54:00:b7:d7:1d,rhcos-4.17,vda
worker,52:54:00:06:93:a4,rhcos-4.17,vda
bootstrap,52:54:00:cf:50:05,rhcos-4.17,vda

1 bootstrap master 52:54:00:f1:d1:63 52:54:00:8f:21:15 fcos-37 rhcos-4.17 vda
2 master master 52:54:00:70:f5:db 52:54:00:76:58:ce fcos-37 rhcos-4.17 vda
3 master master 52:54:00:1b:15:29 52:54:00:28:55:ac fcos-37 rhcos-4.17 vda vda
4 master worker 52:54:00:47:1a:1b 52:54:00:2e:b9:ad fcos-37 rhcos-4.17 vda
5 worker worker 52:54:00:84:b1:11 52:54:00:b7:d7:1d fcos-37 rhcos-4.17 vda vda
6 worker worker 52:54:00:a1:55:1a 52:54:00:06:93:a4 fcos-37 rhcos-4.17 vda vda
7 worker bootstrap 00:50:56:bb:f8:6d 52:54:00:cf:50:05 fcos-37 rhcos-4.17 sda vda
worker 52:54:00:5e:7c:d6 fcos-37 vda
worker ac:1f:6b:ef:83:74 fcos-37 sda
worker 52:54:00:c0:d0:de fcos-37 vda

12
nginx/conf.d/default.conf Normal file
View File

@ -0,0 +1,12 @@
server {
listen 8080;
listen [::]:8080 default_server;
server_name _;
root /var/www/default;
location / {
autoindex on;
index index.html;
}
}

View File

@ -1,11 +1,11 @@
#00:50:56:bb:f8:6d
#52:54:00:06:93:a4
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 00:50:56:bb:f8:6d >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/sda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: worker < 52:54:00:06:93:a4 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,11 +1,11 @@
#52:54:00:70:f5:db
#52:54:00:28:55:ac
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:70:f5:db >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/master.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: master < 52:54:00:28:55:ac >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,11 +1,11 @@
#52:54:00:84:b1:11
#52:54:00:2e:b9:ad
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:84:b1:11 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: worker < 52:54:00:2e:b9:ad >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,11 +1,11 @@
#52:54:00:1b:15:29
#52:54:00:76:58:ce
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:1b:15:29 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/master.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: master < 52:54:00:76:58:ce >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,11 +1,11 @@
#52:54:00:47:1a:1b
#52:54:00:8f:21:15
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:47:1a:1b >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/master.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: master < 52:54:00:8f:21:15 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,11 +1,11 @@
#52:54:00:a1:55:1a
#52:54:00:b7:d7:1d
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:a1:55:1a >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: worker < 52:54:00:b7:d7:1d >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,40 +0,0 @@
#52:54:00:c0:d0:de
timeout 1200
ui vesamenu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default worker
default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:c0:d0:de >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -1,11 +1,11 @@
#52:54:00:f1:d1:63
#52:54:00:cf:50:05
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label bootstrap
menu label Ignite Openshift: bootstrap < 52:54:00:f1:d1:63 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/bootstrap.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: bootstrap < 52:54:00:cf:50:05 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/bootstrap.ign
label localboot
menu label Boot from Local Drive

View File

@ -1,40 +0,0 @@
#ac:1f:6b:ef:83:74
timeout 1200
ui vesamenu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default worker
default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < ac:1f:6b:ef:83:74 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/sda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -2,7 +2,7 @@
echo "Generating pxelinux for your configs"
rm pxeconfigs/*
rm /var/lib/tftpboot/pxelinux/pxelinux.cfg/01*
#rm /var/lib/tftpboot/pxelinux/pxelinux.cfg/01*
function gen_file_config {
role=$1
@ -14,11 +14,11 @@ disk_type=$4
echo "#$2
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -43,8 +43,9 @@ prompt 0
label $role
menu label Ignite Openshift: $role < $2 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/$disk_type coreos.inst.image_url=http://192.168.22.1:8080/images/$image coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/$role.ign ignition.firstboot ignition.platform.id=metal
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/$disk_type coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/$role.ign
label localboot
menu label Boot from Local Drive
@ -59,6 +60,6 @@ do
gen_file_config $role $mac $image $disk_type
done < <( cat mac-lists.csv )
cp -R pxeconfigs/* /var/lib/tftpboot/pxelinux/pxelinux.cfg/
#cp -R pxeconfigs/* /var/lib/tftpboot/pxelinux/pxelinux.cfg/

View File

@ -1,11 +1,11 @@
#52:54:00:5e:7c:d6
#52:54:00:06:93:a4
timeout 1200
ui vesamenu.c32
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
MENU RESOLUTION 640 480
MENU BACKGROUND bg.png
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
@ -29,9 +29,10 @@ default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:5e:7c:d6 >
KERNEL fcos-37-pxe/fcos-live-kernel.x86_64
APPEND initrd=fcos-37-pxe/fcos-initramfs.x86_64.img,fcos-37-pxe/fcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/worker.ign ignition.firstboot ignition.platform.id=metal
menu label Ignite Openshift: worker < 52:54:00:06:93:a4 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive

View File

@ -0,0 +1,41 @@
#52:54:00:28:55:ac
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default master
default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:28:55:ac >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -0,0 +1,41 @@
#52:54:00:2e:b9:ad
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default worker
default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:2e:b9:ad >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -0,0 +1,41 @@
#52:54:00:76:58:ce
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default master
default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:76:58:ce >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -0,0 +1,41 @@
#52:54:00:8f:21:15
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default master
default localboot
prompt 0
label master
menu label Ignite Openshift: master < 52:54:00:8f:21:15 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/master.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -0,0 +1,41 @@
#52:54:00:b7:d7:1d
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default worker
default localboot
prompt 0
label worker
menu label Ignite Openshift: worker < 52:54:00:b7:d7:1d >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/worker.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

View File

@ -0,0 +1,41 @@
#52:54:00:cf:50:05
timeout 1200
ui menu.c32
menu title Infidel's PXE boot Manager
# Background image *must* be the same resolution as the resolution here.
#MENU RESOLUTION 640 480
#MENU BACKGROUND bg.png
# White on a black/transparent background.
MENU COLOR screen * #ffffffff #00000000 std
# Blue borders on a black/transparent background.
# Borders have padding, so that background matters.
MENU COLOR border * #ff0000ff #00000000 std
# Title bar is cyan on a black/transparent background.
MENU COLOR title * #ff00ffff #00000000 std
# Selection bar is white on a magenta/opaque background.
MENU COLOR sel * #ffffffff #ffff00ff none
# Unselected menu items are white on black/transparent.
MENU COLOR unsel * #ffffffff #00000000 std
# menu resolution 604 455
# menu background bg.png
# default bootstrap
default localboot
prompt 0
label bootstrap
menu label Ignite Openshift: bootstrap < 52:54:00:cf:50:05 >
KERNEL boot/rhcos-live-kernel-x86_64
APPEND initrd=boot/rhcos-live-initramfs.x86_64.img coreos.live.rootfs_url=http://192.169.22.1:8080/boot/rhcos/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=http://192.169.22.1:8080/boot/auth/bootstrap.ign
label localboot
menu label Boot from Local Drive
localboot 0
menu end

21
scripts/gen-ocp-install.sh Executable file
View File

@ -0,0 +1,21 @@
TARGET_DIR=$1
if [ -d "${TARGET_DIR}" ]
then
echo "*******************************"
echo -e "\tDirectory Exist !!"
echo -e "\t${TARGET_DIR}"
echo "*******************************"
exit
else
mkdir $1
fi
cp inf-install.yaml "${TARGET_DIR}/install-config.yaml"
openshift-install create manifests --dir $TARGET_DIR
openshift-install create ignition-configs --dir $TARGET_DIR
cp -r $TARGET_DIR/* tftpd_boot/auth/
#chcon -R -t httpd_sys_content_t /var/www/html/okd-inf/
#chown -R apache: /var/www/html/okd-inf/
chmod 755 tftpd_boot/auth