Add Fedora kickstart installer endpoint

This commit is contained in:
root 2026-06-16 16:38:38 +00:00
parent c61a2e5994
commit e20a536002
2 changed files with 40 additions and 0 deletions

8
app.py
View File

@ -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"
)

View File

@ -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