-
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docs): migrate to mkdocs (#68)
* refactor(docs): migrate to mkdocs * More markdown * Admonitions
- Loading branch information
Showing
51 changed files
with
797 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--8<-- | ||
README.md | ||
--8<-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Configuration | ||
|
||
Open the tools container if you haven't already: | ||
|
||
```sh | ||
make tools | ||
``` | ||
|
||
!!! note | ||
|
||
It will take a while to build the tools container on the first time | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Deployment | ||
|
||
Open the tools container, which includes all the tools needed: | ||
|
||
```sh | ||
make tools | ||
``` | ||
|
||
Build the lab: | ||
|
||
```sh | ||
make | ||
``` | ||
|
||
!!! note | ||
|
||
It will take a while to download Rocky Linux ISO on the first time | ||
|
||
Yes it's that simple! | ||
|
||
You can read the [architecture document](../../reference/architecture.md) while waiting for the deployment to complete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.