devops/quadlets/modules/valkey/main.tf

37 lines
699 B
HCL

variable "wait_on" {
type = any
description = "Resources to wait on"
default = true
}
variable "server_ip" {
type = string
}
variable "ssh_private_key_path" {
type = string
}
module "valkey" {
source = "../quadlet-app"
wait_on = var.wait_on
server_ip = var.server_ip
ssh_private_key_path = var.ssh_private_key_path
app_name = "valkey"
image = "docker.io/valkey/valkey:7-alpine"
ports = ["6379:6379"]
volumes = ["/opt/storage/data/valkey:/data:Z"]
command = ["valkey-server", "--appendonly", "yes"]
}
output "app_urls" {
value = module.valkey.app_urls
}
output "installed" {
value = true
depends_on = [module.valkey.installed]
}