Fedora CoreOS ignition config for my home server.
To test locally or to flash image to USB drive you need:
sudo dnf install make podman qemu-system-x86-core
Save your Docker.io token to units/dockerhub/docker-auth.json:
{
"auths": {
"docker.io": {
"auth": "YOUR_TOKEN"
}
}
}
Run in one terminal:
make demo
And then run in another terminal:
make shell
Press Ctrl + A X to exit demo server shell.
Call make clean to remove all temporary files from the dir and system.
Insert USB flash drive and call:
make flash
It will write image to /dev/sda. Change Makefile if you need another path.
Then insert drive to machine and boot it. It will automatically install
system to /dev/mmcblk1 (change Makefile for another drive).
After re-installing the server you need to prepare some files on HDD.
Create backup:
borg init --encryption repokey-blake2 ai@susedko.local:/var/mnt/vault/ai/backup
Install ./sitniks.crt CA certificate to your system.
For MacOS:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./sitniks.crt
For Linux CLI:
sudo dnf install nss-tools
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n sitnik -i ~/Dev/susedko/sitniks.crt
sudo cp ~/Dev/susedko/sitniks.crt /etc/pki/ca-trust/source/anchors/sitniks.pem
sudo update-ca-trust
For Firefox on Linux: go to about:preferences#privacy, click on View Certificates, and import sitniks.crt.
For Chrome on Linux: go to chrome://settings/certificates, click on Authorities, and add sitniks.crt.