https://github.com/codekow/lab-provision
A collection of provisioning resources
https://github.com/codekow/lab-provision
Last synced: 10 months ago
JSON representation
A collection of provisioning resources
- Host: GitHub
- URL: https://github.com/codekow/lab-provision
- Owner: codekow
- License: mit
- Created: 2025-04-04T21:20:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-13T20:09:42.000Z (10 months ago)
- Last Synced: 2025-08-13T22:09:36.061Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lab-provision
A collection of provisioning scripts and files
## Quick starts
### Download the bins for tftpboot / pxe
```sh
cd files/tftpboot
. ../../scripts/tftp_bins.sh
```
### Examples for iPXE / kickstart
A kickstart that includes:
- Encrypts the root filesystem with `luks` and binds to a TPM with a random key
- Setup GitHub keys on user(s)
- `BIOS` vs `UEFI` detection
- Configures nested virtualization
- Installs `vbmcd` (virtualbmc) and `sushy-tools` for BMC / Redfish emulation
See [kickstart example](files/tftpboot/install/ks/ks-fedora-server.cfg)
iPXE example that includes:
- Check `iPXE` version and update
- Custom boot based on `hostname` or `mac` address with [client](files/tftpboot/boot.ipxe.cfg)
- Boot from `http` or `tftp`
- Boot `Memtest` or `netboot.xyz`
See [iPXE example](files/tftpboot/boot.ipxe)
### Ansible adhoc commands
```sh
python -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
```
```sh
# cp ansible.example scratch/inventory
# modify scratch/inventory as needed
ansible -i scratch/inventory -a "uptime" nodes
ansible -i scratch/inventory -a 'sudo fwupdmgr upgrade -y' nodes
```