refactor: functional separation with deploy/, recipe-generator/, and bin/

- deploy/: deployment bash scripts (4 files)
- recipe-generator/: recipe generation tool (Python + YAML configs)
- bin/: executable wrappers (single generate-recipe entry point)
- Updated deploy.sh, README.md, DEVELOPMENT.md, DEVELOPMENT_QUICK.md
- Updated tests/test_recipe_generator.py and tests/integration/test_integration.py
- Updated CI workflow and Makefile paths
- All 41 tests pass
This commit is contained in:
Lukas Greve
2026-03-25 09:34:00 +01:00
parent 00c4356ff3
commit 3782777058
25 changed files with 55 additions and 51 deletions
+6 -6
View File
@@ -10,7 +10,7 @@ sudo dnf install qemu libvirt virt-install pykickstart
pip install PyYAML pytest
# Verify setup
cd scripts && make generate-recipes && make test
cd recipe-generator && make generate-recipes && make test
```
## Core Workflows
@@ -28,17 +28,17 @@ new-package
### Add to Recipe
```bash
# Edit scripts/recipe_templates.yaml to include fragment
# Edit scripts/recipes_manifest.yaml to add variant
# Edit recipe-generator/recipe_templates.yaml to include fragment
# Edit recipe-generator/recipes_manifest.yaml to add variant
# Regenerate
cd scripts && make generate-recipes && make validate-recipes
cd recipe-generator && make generate-recipes && make validate-recipes
```
### Run Tests
```bash
cd scripts
cd recipe-generator
make test # All tests
make test-integration # Integration only
make test-container # Containerized
@@ -60,7 +60,7 @@ done
## Architecture
```
fragments/ (54 .ks) → generate_recipe.py → recipes/ (16 .cfg) → ksflatten → dishes/ (28 .cfg)
fragments/ (54 .ks) → recipe-generator/generate_recipe.py → recipes/ (16 .cfg) → ksflatten → dishes/ (28 .cfg)
```
See `DEVELOPMENT.md` Section 1 for detailed architecture overview.