YAML recipe interpreter for Simple-CDD
Project description
Simple-CDD-YAML
Preprocessor for Simple-CDD using YAML input files (so-called recipes), as inspired by debos.
Simple-CDD is a tool for creating customized debian-installer CDs.
Introduction
Simple-CDD-YAML uses YAML recipes to generate the profile files required by
Simple-CDD. A recipe consists of actions, that generate or append files in the
Simple-CDD profile. Simple-CDD-YAML features the following actions (for an
exemplary profile called <profile>):
recipeaction: embed another recipeconfaction: compose a<profile>.conffile by supplying (environment) variablespreseedaction: define a preseed fileaptaction: add packagesrunaction: add a command or script (to<profile>.postinst)overlayaction: add an overlay (an overlay is a file structure that is compressed into one single file and automatically added to the file<profile>.extra. A corresponding command to decompress the overlay is added to<profile>.postinst)extraaction: add extra filedownloadsaction: add extra packagesdebosaction: [only in debos mode] add pre- and post-action to debos recipe output
Some of the actions support substitutions using jinja notation, making it easier to reuse scripts, preseeds and recipes. By defining variables with default values at the top of a recipe it becomes easy to reuse and nest recipes.
A few actions also support different roles: by default scripts are executed and overlays are deployed as root, but you can also specify to have this done by a given user.
Please refer to the documentation on actions for detailed documentation for each action.
Installation
Simple-CDD-YAML can be directly installed from PyPi using
pip:
pip install simple-cdd-yaml
Detailed instructions are found in the documentation's installation section.
Usage
After installation use the command simple-cdd-yaml to create Simple-CDD
profiles from YAML files. Issue simple-cdd-yaml --help to get help.
Detailed usage instructions are found in the getting started guide.
Examples
Refer to the documentation's examples page for a detailed recipe explanation. The repository simple-cdd-yaml-recipes contains more example recipes.
Documentation
Check out the documentation to get started, find more background information and query the code reference.
Pre-commit hooks
This repository comes with pre-commit hooks, which are stored in
.hooks. To enable the hooks issue:
git config --local core.hooksPath .hooks/
License
An MIT style license applies for Simple-CDD-YAML, see the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_cdd_yaml-0.1.1.tar.gz.
File metadata
- Download URL: simple_cdd_yaml-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2296866114c17fc9b749d0e38fcf8ffa74f3f3ec0b3550287844883181579148
|
|
| MD5 |
e0ab87c12ca65c1209a6cdec81f5da9e
|
|
| BLAKE2b-256 |
a39524c2dd65db7f8b790c0baa4ac6cd166231566c616bd926a8ede641c134d4
|
Provenance
The following attestation bundles were made for simple_cdd_yaml-0.1.1.tar.gz:
Publisher:
release.yaml on swvanbuuren/simple-cdd-yaml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_cdd_yaml-0.1.1.tar.gz -
Subject digest:
2296866114c17fc9b749d0e38fcf8ffa74f3f3ec0b3550287844883181579148 - Sigstore transparency entry: 426403254
- Sigstore integration time:
-
Permalink:
swvanbuuren/simple-cdd-yaml@8e4ce64c7608ae1af4048121360c6bb800bee752 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/swvanbuuren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8e4ce64c7608ae1af4048121360c6bb800bee752 -
Trigger Event:
push
-
Statement type:
File details
Details for the file simple_cdd_yaml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simple_cdd_yaml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f92c89bd466084a38be42d4a779a102ecad1489bf785d5dc6e2e4f39b253bbe
|
|
| MD5 |
0768bc78dd58ba6d5c4207b5b197a162
|
|
| BLAKE2b-256 |
ffa78387643b16773abca8b1f27baf754758e5282223cb9021112f68ea830237
|
Provenance
The following attestation bundles were made for simple_cdd_yaml-0.1.1-py3-none-any.whl:
Publisher:
release.yaml on swvanbuuren/simple-cdd-yaml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simple_cdd_yaml-0.1.1-py3-none-any.whl -
Subject digest:
8f92c89bd466084a38be42d4a779a102ecad1489bf785d5dc6e2e4f39b253bbe - Sigstore transparency entry: 426403262
- Sigstore integration time:
-
Permalink:
swvanbuuren/simple-cdd-yaml@8e4ce64c7608ae1af4048121360c6bb800bee752 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/swvanbuuren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8e4ce64c7608ae1af4048121360c6bb800bee752 -
Trigger Event:
push
-
Statement type: