2022-10-16 09:09:02 +00:00
|
|
|
# Homelab
|
2022-06-08 19:49:38 +00:00
|
|
|
|
2022-11-01 19:41:45 +00:00
|
|
|
This repository contain my homelab Infrastructure As Code
|
|
|
|
|
2023-08-25 12:12:22 +00:00
|
|
|
this Homelab is build over Hashicorp software stack:
|
2022-11-01 19:41:45 +00:00
|
|
|
|
|
|
|
- Nomad
|
|
|
|
- Consul
|
|
|
|
- Vault
|
2022-06-08 19:49:38 +00:00
|
|
|
|
2023-08-25 12:12:22 +00:00
|
|
|
## Dev
|
|
|
|
|
|
|
|
dev stack is build over vagrant box with libvirt provider
|
|
|
|
|
|
|
|
curently need to have vault and ldap production up to be correctly provision
|
|
|
|
|
|
|
|
to launch dev stack provissionning :
|
|
|
|
|
|
|
|
```sh
|
|
|
|
make create-dev
|
|
|
|
```
|
|
|
|
|
2022-11-29 21:08:34 +00:00
|
|
|
## Rebuild
|
|
|
|
|
2022-06-08 19:49:38 +00:00
|
|
|
to rebuild from scratch ansible need a vault server up and unseal
|
2022-10-16 09:09:02 +00:00
|
|
|
you can rebuild a standalone vault server with a consul database snaphot with
|
2022-06-08 19:49:38 +00:00
|
|
|
|
2022-11-29 21:08:34 +00:00
|
|
|
```sh
|
2022-06-08 19:49:38 +00:00
|
|
|
make vault-dev FILE=./yourconsulsnaphot.snap
|
|
|
|
```
|
|
|
|
|
2022-10-14 12:23:29 +00:00
|
|
|
## Architecture
|
|
|
|
|
|
|
|
```mermaid
|
|
|
|
flowchart LR
|
2022-10-14 14:02:31 +00:00
|
|
|
subgraph Home
|
2022-11-13 16:19:21 +00:00
|
|
|
bleys[bleys]
|
2022-10-14 14:02:31 +00:00
|
|
|
oscar[oscar]
|
|
|
|
gerard[gerard]
|
2022-11-13 16:19:21 +00:00
|
|
|
LAN
|
|
|
|
NAS
|
2022-10-14 14:02:31 +00:00
|
|
|
end
|
|
|
|
subgraph Cloud
|
2022-11-13 16:19:21 +00:00
|
|
|
corwin[corwin]
|
2022-10-14 14:02:31 +00:00
|
|
|
end
|
2022-11-13 16:19:21 +00:00
|
|
|
LAN--main road--ooscar
|
|
|
|
LAN --- bleys
|
|
|
|
LAN --- gerard
|
|
|
|
LAN --- NAS
|
|
|
|
bleys <--wireguard--> corwin
|
|
|
|
oscar <--wiregard--> corwin
|
|
|
|
gerard <--wiregard--> corwin
|
|
|
|
corwin <--> internet
|
2022-10-14 12:23:29 +00:00
|
|
|
|
|
|
|
```
|