new features

This commit is contained in:
2026-08-07 21:59:28 +02:00
parent 73b05ab90e
commit 23ef06df55
2 changed files with 11 additions and 2 deletions
+4 -2
View File
@@ -6,7 +6,8 @@ resource "terraform_data" "docker_compose_deploy" {
var.vm_ssh_key, var.vm_ssh_key,
var.vm_ip, var.vm_ip,
dirname(var.destination_path), dirname(var.destination_path),
var.ssh_user var.ssh_user,
var.start_delay_seconds
] ]
connection { connection {
@@ -28,7 +29,8 @@ resource "terraform_data" "docker_compose_deploy" {
"export INFISICAL_TOKEN=\"${self.triggers_replace[1]}\"", "export INFISICAL_TOKEN=\"${self.triggers_replace[1]}\"",
"export INFISICAL_API_URL=\"https://secrets.itlab-ffeks.dnu.edu.ua\"", "export INFISICAL_API_URL=\"https://secrets.itlab-ffeks.dnu.edu.ua\"",
"export INFISICAL_DISABLE_UPDATE_CHECK=true", "export INFISICAL_DISABLE_UPDATE_CHECK=true",
"infisical run --env=\"${self.triggers_replace[2]}\" -- docker compose up -d" "infisical run --env=\"${self.triggers_replace[2]}\" -- docker compose up -d",
"sleep ${self.triggers_replace[7]}"
] ]
} }
+7
View File
@@ -36,3 +36,10 @@ variable "ssh_user" {
description = "SSH user for VM authentication" description = "SSH user for VM authentication"
default = "debian" default = "debian"
} }
variable "start_delay_seconds" {
type = number
description = "Number of seconds to wait after starting docker compose"
default = 10
}