Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Feb 17, 2024
1 parent d9cada7 commit 0b7061a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<li><a href=\"${i}.json\">${i}</a></li>" >> ../.build/index.html
Expand Down
12 changes: 12 additions & 0 deletions terraform/files/sections/disk_hetzner.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions terraform/files/sections/disk_sd.yml

This file was deleted.

15 changes: 14 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0b7061a

Please sign in to comment.