new features
This commit is contained in:
@@ -6,7 +6,8 @@ resource "terraform_data" "docker_compose_deploy" {
|
||||
var.vm_ssh_key,
|
||||
var.vm_ip,
|
||||
dirname(var.destination_path),
|
||||
var.ssh_user
|
||||
var.ssh_user,
|
||||
var.start_delay_seconds
|
||||
]
|
||||
|
||||
connection {
|
||||
@@ -28,7 +29,8 @@ resource "terraform_data" "docker_compose_deploy" {
|
||||
"export INFISICAL_TOKEN=\"${self.triggers_replace[1]}\"",
|
||||
"export INFISICAL_API_URL=\"https://secrets.itlab-ffeks.dnu.edu.ua\"",
|
||||
"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]}"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -36,3 +36,10 @@ variable "ssh_user" {
|
||||
description = "SSH user for VM authentication"
|
||||
default = "debian"
|
||||
}
|
||||
|
||||
variable "start_delay_seconds" {
|
||||
type = number
|
||||
description = "Number of seconds to wait after starting docker compose"
|
||||
default = 10
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user