Files
matchbox/scripts
Dalton Hubble e59b2b7b55 Update Flatcar Linux examples and use Ignition
* Discontinue using Matchbox's Container Linux Config features
* Flatcar Linux OS now supports Ignition v2.13+ which means it
can accept Ignition v3.x spec's, like Fedora CoreOS. Matchbox
supports this by serving Ignition documents directly
* Users of the poseidon/matchbox Terraform provider can pass
a `matchbox_profile` `raw_ignition` contents with the desired
Ignition v3.3 spec
* Users of the poseidon/ct Terraform provider can write Butane
Config YAML, perform templating, and render an Ignition document
using either the fcos or the flatcar variant
2022-07-29 22:12:20 -07:00
..

Scripts

get-fedora-coreos

Run the get-fedora-coreos script to download Fedora CoreOS images, verify them, and move them into examples/assets.

./scripts/get-fedora-coreos
./scripts/get-fedora-coreos stream version dest

This will create:

examples/assets/fedora-coreos/
├── fedora-coreos-36.20220618.3.1-live-initramfs.x86_64.img
├── fedora-coreos-36.20220618.3.1-live-kernel-x86_64
├── fedora-coreos-36.20220618.3.1-live-rootfs.x86_64.img

get-flatcar

Run the get-flatcar script to download Flatcar Linux images, verify them, and move them into examples/assets.

./scripts/get-flatcar
./scripts/get-flatcar channel version dest

This will create:

examples/assets/flatcar/
└── 3227.2.0
    ├── Flatcar_Image_Signing_Key.asc
    ├── flatcar_production_image.bin.bz2
    ├── flatcar_production_image.bin.bz2.sig
    ├── flatcar_production_pxe_image.cpio.gz
    ├── flatcar_production_pxe_image.cpio.gz.sig
    ├── flatcar_production_pxe.vmlinuz
    ├── flatcar_production_pxe.vmlinuz.sig
    └── version.txt

libvirt

Create QEMU/KVM VMs which are configured to boot from the network. The scripts/libvirt script will create virtual machines on the metal0 or docker0 bridge with known hardware attributes (e.g. UUID, MAC address).

$ sudo ./scripts/libvirt
USAGE: libvirt <command>
Commands:
    create      create QEMU/KVM nodes on the docker0 bridge
    start       start the QEMU/KVM nodes
    reboot      reboot the QEMU/KVM nodes
    shutdown    shutdown the QEMU/KVM nodes
    poweroff    poweroff the QEMU/KVM nodes
    destroy     destroy the QEMU/KVM nodes