From e20a536002995aa7325e86de1e5bce46025b5ebf Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jun 2026 16:38:38 +0000 Subject: [PATCH] Add Fedora kickstart installer endpoint --- app.py | 8 +++++++ installers/fedora-workstation/ks.cfg | 32 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 installers/fedora-workstation/ks.cfg diff --git a/app.py b/app.py index faa1f64..f8cb8d2 100644 --- a/app.py +++ b/app.py @@ -4,6 +4,7 @@ import json from fastapi import FastAPI, Request from pydantic import BaseModel +from fastapi.responses import FileResponse CONFIG_PATH = Path("config.json") @@ -123,3 +124,10 @@ def get_profile_bootstrap(profile_id: str): "authorized_keys_url": "https://anode.stallinux.de/keys/default.pub" } } + +@app.get("/installers/fedora-workstation/ks.cfg") +def get_fedora_kickstart(): + return FileResponse( + "installers/fedora-workstation/ks.cfg", + media_type="text/plain" + ) diff --git a/installers/fedora-workstation/ks.cfg b/installers/fedora-workstation/ks.cfg new file mode 100644 index 0000000..e5cfcea --- /dev/null +++ b/installers/fedora-workstation/ks.cfg @@ -0,0 +1,32 @@ +#version=DEVEL + +text +reboot + +lang en_US.UTF-8 +keyboard us +timezone Europe/Berlin --utc + +rootpw --plaintext changeme + +network --bootproto=dhcp + +zerombr +clearpart --all --initlabel +autopart + +firewall --enabled +selinux --enforcing + +bootloader --location=mbr + +%packages +@core +vim +curl +git +%end + +%post +echo "Provisioned by Stallinux" > /etc/motd +%end