diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2abe7fc..0ef3412 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -34,7 +34,7 @@ jobs:
echo "Getting Terraform JSON outputs..."
- for i in "plex" "swarm_manager" "swarm_worker" "hetzner"; do
+ for i in "plex" "swarm_manager" "swarm_worker" "hetzner" "hetzner_local"; do
echo " ... ${i}"
terraform output -raw ${i} > ../.build/${i}.json
echo "
${i}" >> ../.build/index.html
diff --git a/terraform/files/sections/disk_hetzner.yml b/terraform/files/sections/disk_hetzner.yml
new file mode 100644
index 0000000..2e5eb2a
--- /dev/null
+++ b/terraform/files/sections/disk_hetzner.yml
@@ -0,0 +1,12 @@
+variant: flatcar
+version: 1.0.0
+
+storage:
+ disks:
+ - device: /dev/sdb
+ wipe_table: true
+ partitions:
+ - number: 1
+ label: mnt_data
+ resize: true
+ size_mib: 0
\ No newline at end of file
diff --git a/terraform/files/sections/disk_sd.yml b/terraform/files/sections/disk_sd.yml
deleted file mode 100644
index 78107fc..0000000
--- a/terraform/files/sections/disk_sd.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-variant: flatcar
-version: 1.0.0
-
-storage:
- disks:
- - device: /dev/sdb
\ No newline at end of file
diff --git a/terraform/main.tf b/terraform/main.tf
index 7e3da67..073981d 100644
--- a/terraform/main.tf
+++ b/terraform/main.tf
@@ -41,7 +41,20 @@ data "ct_config" "plex" {
}
data "ct_config" "hetzner" {
- content = file("files/sections/disk_sd.yml")
+ content = file("files/sections/disk_hetzner.yml")
+ strict = true
+ pretty_print = false
+
+ snippets = [
+ file("files/sections/fs.yml"),
+ # Sectionss
+ file("files/sections/users.yml"),
+ file("files/sections/docker.yml"),
+ ]
+}
+
+data "ct_config" "hetzner_local" {
+ content = file("files/sections/disk_vm.yml")
strict = true
pretty_print = false