Replace kickstart files with ignition

This commit is contained in:
Khue Doan 2021-06-13 02:39:47 +07:00
parent 77d87f0c33
commit d616abe807
4 changed files with 13 additions and 6 deletions

View File

@ -3,3 +3,4 @@ iso_checksum: "sha256:acbf3cd5b25da7a1fb6862485a6a38064dd8f14dc0398137d371abb9b1
iso_file_name: "fedora-coreos-34.20210518.3.0-live.x86_64.iso"
os_username: admin
os_name: CoreOS

View File

@ -9,12 +9,20 @@ services:
network_mode: host
volumes:
- ./mnt/EFI/BOOT/grubx64.efi:/var/lib/tftpboot/grubx64.efi
- ./mnt/images/ignition.img:/var/lib/tftpboot/ignition.img
- ./mnt/images/pxeboot/initrd.img:/var/lib/tftpboot/initrd.img
- ./mnt/images/pxeboot/vmlinuz:/var/lib/tftpboot/vmlinuz
http:
build: ./http
network_mode: host
volumes:
- ./mnt:/usr/share/nginx/html/Fedora
- ./mnt:/usr/share/nginx/html/CoreOS
- ./http/ignition/:/usr/share/nginx/html/ignition
environment:
NGINX_PORT: 80
butane:
image: quay.io/coreos/butane:release
volumes:
- ./http/ignition/:/local/src
working_dir: /local/src
command: --pretty --strict ignition.yaml --output ignition.json

View File

@ -1,3 +1 @@
FROM nginx:1.19-alpine
COPY ./kickstart /usr/share/nginx/html/kickstart

View File

@ -1,11 +1,11 @@
set timeout=1
menuentry 'CoreOS (Live)' {
menuentry '{{ os_name }} (Live)' {
linux vmlinuz \
ip=dhcp \
ignition.platform.id=metal \
coreos.live.rootfs_url=http://{{ ansible_default_ipv4.address }}/Fedora/images/pxeboot/rootfs.img \
coreos.live.rootfs_url=http://{{ ansible_default_ipv4.address }}/{{ os_name }}/images/pxeboot/rootfs.img \
coreos.inst.install_dev=/dev/{{ disk }} \
coreos.inst.ignition_url=http://{{ ansible_default_ipv4.address }}/kickstart/init.json
coreos.inst.ignition_url=http://{{ ansible_default_ipv4.address }}/ignition/ignition.json
initrd initrd.img ignition.img
}