2022-07-06 12:33:35 +07:00
|
|
|
# Configuration
|
|
|
|
|
2024-11-23 09:35:01 +07:00
|
|
|
Open the [development shell](../../concepts/development-shell.md), which includes all the tools needed:
|
2022-07-06 12:33:35 +07:00
|
|
|
|
2024-11-23 09:35:01 +07:00
|
|
|
```sh
|
|
|
|
nix develop
|
|
|
|
```
|
2022-07-06 12:33:35 +07:00
|
|
|
|
|
|
|
Run the following script to configure the homelab:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
make configure
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! example
|
|
|
|
|
|
|
|
<!-- TODO update example input -->
|
|
|
|
|
|
|
|
```
|
|
|
|
Text editor (nvim):
|
|
|
|
Enter seed repo (github.com/khuedoan/homelab): github.com/example/homelab
|
|
|
|
Enter your domain (khuedoan.com): example.com
|
|
|
|
```
|
|
|
|
|
|
|
|
It will prompt you to edit the inventory:
|
|
|
|
|
|
|
|
- IP address: the desired one, not the current one, since your servers have no operating system installed yet
|
|
|
|
- Disk: based on `/dev/$DISK`, in my case it's `sda`, but yours can be `sdb`, `nvme0n1`...
|
|
|
|
- Network interface: usually it's `eth0`, mine is `eno1`
|
|
|
|
- MAC address: the **lowercase, colon separated** MAC address of the above network interface
|
|
|
|
|
|
|
|
!!! example
|
|
|
|
|
|
|
|
```yaml title="metal/inventories/prod.yml"
|
|
|
|
--8<--
|
|
|
|
metal/inventories/prod.yml
|
|
|
|
--8<--
|
|
|
|
```
|
|
|
|
|
|
|
|
At the end it will show what has changed. After examining the diff, commit and push the changes.
|