An open API service indexing awesome lists of open source software.

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

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