Skip to content

Run with Taskfile

Use Taskfile command and execute action you want.

Clone repository

Simply clone the repository

git clone https://github.com/tmq107/homelab.git

Update your hosts and variable

  • Go to folder homelab then go to folder environment and create your env folder
  • Update your machine information that hosts you want to setup cluster into file hosts
  • Update variable file to enable component that you want your cluster will be exist from var.yml
  • Update variable file as secret to enable component that you want your cluster will be exist from secret.yml

Init packages before you run your action

task init

Planning

task plan

Apply new changes into your machines

task apply

Cleanup

task destroy

Others

show all action that you can run
task

Edit Secret

task edit
if you fork it into your repository then you want to update documentation, you can run
task docs

Warning: By default, it will run as dev environment, if you want to specific environment, please add ENV=prod behind task command line. Example:

task plan ENV=prod