-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (29 loc) · 1.17 KB
/
Copy pathjustfile
File metadata and controls
37 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import 'justfiles/tofu.just'
import 'justfiles/tools.just'
help:
@echo "Available commands:"
@echo ""
@echo "=== OpenTofu Commands ==="
@echo " tofu-init - Initialize OpenTofu configuration"
@echo " tofu-validate - Validate OpenTofu configuration"
@echo " tofu-plan - Show OpenTofu execution plan"
@echo " tofu-apply - Apply OpenTofu changes"
@echo " tofu-destroy - Destroy OpenTofu-managed resources"
@echo " tofu - Run full OpenTofu provisioning workflow"
@echo ""
@echo "=== Tools Installation ==="
@echo " install-opentofu - Install OpenTofu package based on host OS"
@echo " install-docker - Install Docker engine and enable it"
@echo " install - Install required tools (opentofu, docker) based on host OS"
@echo ""
@echo "=== Composite Workflows ==="
@echo " deploy - Install tools, and create the lab"
@echo " destroy - Destroy the lab and clean up files"
exec:
docker exec -it controlplane sh
clean:
@rm -rf \
tofu/.terraform.lock* \
tofu/terraform.tfstate*
deploy: install tofu exec
destroy: tofu-destroy clean