aboutsummaryrefslogtreecommitdiff
path: root/opentofu/init-validate-plan.sh
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-02-03 13:01:33 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2025-02-03 13:01:33 +0100
commitd26133790a82e30955aeaa0327a30616788b9aee (patch)
treebab75464255b3d92377398cdc8ec530d6f1758a4 /opentofu/init-validate-plan.sh
parentcbe1116f9ea9c4b1c0e66125070d33236fe0bbc6 (diff)
opentofu: main becomes docker-server, starting ubuntu and k8s cluster template
Diffstat (limited to 'opentofu/init-validate-plan.sh')
-rwxr-xr-xopentofu/init-validate-plan.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/opentofu/init-validate-plan.sh b/opentofu/init-validate-plan.sh
new file mode 100755
index 0000000..21d133e
--- /dev/null
+++ b/opentofu/init-validate-plan.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+plan_file="$1"
+
+# tofu workflow
+tofu init && \
+tofu fmt && \
+tofu validate && \
+tofu plan -out "$plan_file"