mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
* Add support for fcos v1.5.0 Butane Configs * Add support for flatcar v1.1.0 Butane Configs * Render Butane or raw Ignition to Ignition spec v3.4.0 using Ignition's forward compatibility support Rel: * https://coreos.github.io/butane/config-fcos-v1_5/ * https://coreos.github.io/butane/config-flatcar-v1_1/ * https://coreos.github.io/ignition/configuration-v3_4/
39 lines
915 B
YAML
39 lines
915 B
YAML
---
|
|
variant: flatcar
|
|
version: 1.1.0
|
|
systemd:
|
|
units:
|
|
- name: installer.service
|
|
enabled: true
|
|
contents: |
|
|
[Unit]
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/opt/installer
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
storage:
|
|
files:
|
|
- path: /opt/installer
|
|
mode: 0500
|
|
contents:
|
|
inline: |
|
|
#!/bin/bash -ex
|
|
curl --retry 10 --fail "http://matchbox.example.com:8080/ignition?os=installed" -o ignition.json
|
|
flatcar-install \
|
|
-d /dev/vda \
|
|
-C stable \
|
|
-V 3227.2.0 \
|
|
-b http://matchbox.example.com:8080/assets/flatcar \
|
|
-i ignition.json
|
|
udevadm settle
|
|
systemctl reboot
|
|
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
- ssh-ed25519 SET_PUBKEY_HERE
|