Format terraform and nomad files

This commit is contained in:
2025-05-18 21:28:24 +10:00
parent 837cfdae68
commit 9cdd529633
12 changed files with 80 additions and 72 deletions

3
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"recommendations": ["hashicorp.terraform", "fredwangwang.vscode-hcl-format"]
}

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true
}

View File

@@ -28,7 +28,7 @@ job "pgbackup" {
image = "postgres:latest"
command = "/bin/bash"
args = ["-c", "pg_dumpall -h localhost -U postgres > /backup/all_databases.sql"]
volumes = [ "secrets/postgres_password:/run/secrets/postgres_password" ]
volumes = ["secrets/postgres_password:/run/secrets/postgres_password"]
}
user = "1000"
@@ -66,7 +66,7 @@ EOF
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=1000","gid=0"]
mount_flags = ["uid=1000", "gid=0"]
}
}

View File

@@ -31,7 +31,7 @@ job "transfer" {
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=911","gid=1000"] # linuxserver.io container services run as uid 911
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
}
}
@@ -43,7 +43,7 @@ job "transfer" {
attachment_mode = "file-system"
mount_options {
mount_flags = ["uid=911","gid=1000"] # linuxserver.io container services run as uid 911
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
}
}

View File

@@ -3,7 +3,7 @@ job "demo-webapp" {
count = 3
network {
port "http"{
port "http" {
to = -1
}
}
@@ -27,8 +27,8 @@ job "demo-webapp" {
task "server" {
env {
PORT = "${NOMAD_PORT_http}"
NODE_IP = "${NOMAD_IP_http}"
PORT = NOMAD_PORT_http
NODE_IP = NOMAD_IP_http
}
driver = "docker"