Freebsd
FreeBSD system primitives via SSH — pkg(8) package management, sysrc(8) rc.conf key-value management, service(8) enable/disable + lifecycle, and kldload(8)/kldstat(8) kernel module management with /boot/loader.conf persistence. All four model types follow the check/apply pattern: check audits compliance without changes; apply converges actual state to desired state. Desired state is declared in globalArgs so the model instance is the declaration. SSH via OpenSSH ControlMaster; sudo privilege escalation optional via become/becomeUser/becomePassword. Model types: - @josephholsten/freebsd/pkg — install or remove packages (pkg install/remove) - @josephholsten/freebsd/rc — manage rc.conf key=value pairs via sysrc(8), including append mode for space-separated list values
- @josephholsten/freebsd/service — enable/disable at boot + start/stop/restart - @josephholsten/freebsd/kld — load/unload kernel modules with optional /boot/loader.conf persistence
Global Arguments
| Argument | Type | Description |
|---|---|---|
| key | string | rc.conf key to manage |
| value | string | Desired value. When append=true, the token to ensure is present in the space-separated value. |
| ensure | enum | Whether the key should exist with the desired value |
| append | boolean | When true, treat value as a token to append (sysrc key+=value) rather than an exact match |
Resources
Global Arguments
| Argument | Type | Description |
|---|---|---|
| packages | array | Package names to manage |
| ensure | enum | Whether packages should be present or absent |
Resources
Global Arguments
| Argument | Type | Description |
|---|---|---|
| service | string | Service name (e.g. telegraf, nginx) |
| ensure? | enum | Whether the service should be running or stopped |
| enabled? | boolean | Whether the service should be enabled at boot via rc.conf |
Resources
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Kernel module name (e.g. ng_ether, if_ath_pci) |
| ensure | enum | Whether the module should be loaded or unloaded |
| persist | boolean | Persist the module across reboots via /boot/loader.conf |
Resources
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned