aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-03-03 21:27:21 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2025-03-03 21:27:21 +0100
commitc4f285b83720fdaedc7820ea61ad18f1c33bab3e (patch)
tree0c4451adf84cde9b5a338c972d8c1ed345d5f3b9
parentd715e7a9d6c6ab608a8cb457b07082856277baa3 (diff)
Add page about setting up the lab using opentofu + ansible
-rw-r--r--set-up-homelab.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/set-up-homelab.md b/set-up-homelab.md
new file mode 100644
index 0000000..6fbcfa9
--- /dev/null
+++ b/set-up-homelab.md
@@ -0,0 +1,26 @@
+# Set Up Homelab
+
+## Create the VMs with OpenTofu
+
+```sh
+pushd opentofu/
+./init-validate-plan.sh
+tofu apply "plan.out"
+popd
+```
+
+## Configure them with Ansible
+
+```sh
+export ANSIBLE_CONFIG="$HOME/workbench/homelab-iac/ansible/ansible.cfg"
+ansible-playbook ~/workbench/homelab-iac/ansible/playbooks/bootstrap.yml
+```
+
+
+## Destroy
+
+```sh
+pushd opentofu/
+tofu destroy
+popd
+```