Whitespace

This commit is contained in:
Greyscale 2025-01-21 20:12:19 +01:00
parent e42a6e9014
commit 94e1e630fe
Signed by: grey
GPG key ID: DDB392AE64B32D89
6 changed files with 20 additions and 20 deletions
products
archiveteam/warrior
memcached
mysql
postgres

View file

@ -21,8 +21,8 @@ module "warrior" {
"CONCURRENT_ITEMS" = var.concurrency "CONCURRENT_ITEMS" = var.concurrency
"SHARED_RSYNC_THREADS" = var.shared_rsync_threads "SHARED_RSYNC_THREADS" = var.shared_rsync_threads
} }
parallelism = var.warrior_instances parallelism = var.warrior_instances
traefik = var.traefik traefik = var.traefik
converge_enable = false # @todo MB: add healthcheck and fix this. converge_enable = false # @todo MB: add healthcheck and fix this.
} }

View file

@ -28,8 +28,8 @@ variable "stack_name" {
type = string type = string
} }
variable "service_name" { variable "service_name" {
default = "memcached" default = "memcached"
type = string type = string
description = "The name of the service to create." description = "The name of the service to create."
} }
variable "networks" { variable "networks" {

View file

@ -1,20 +1,20 @@
module "service" { module "service" {
source = "../../docker/service" source = "../../docker/service"
image = "${var.memcached_image}:${var.memcached_version}" image = "${var.memcached_image}:${var.memcached_version}"
stack_name = var.stack_name stack_name = var.stack_name
service_name = var.service_name service_name = var.service_name
networks = var.networks networks = var.networks
command = ["memcached", "--memory-limit", var.memory_limit_mb, "--threads", var.threads, "--connection-limit", var.connection_limit] command = ["memcached", "--memory-limit", var.memory_limit_mb, "--threads", var.threads, "--connection-limit", var.connection_limit]
#healthcheck = ["CMD-SHELL", "echo \"version\" | nc -vn -w 1 127.0.0.1 11211"] #healthcheck = ["CMD-SHELL", "echo \"version\" | nc -vn -w 1 127.0.0.1 11211"]
#healthcheck_start_period = "10s" #healthcheck_start_period = "10s"
#healthcheck_interval = "10s" #healthcheck_interval = "10s"
#healthcheck_timeout = "5s" #healthcheck_timeout = "5s"
#healthcheck_retries = 3 #healthcheck_retries = 3
converge_enable = false # @todo MB: fix healthcheck and fix this. converge_enable = false # @todo MB: fix healthcheck and fix this.
volumes = local.volumes volumes = local.volumes
mounts = local.mounts mounts = local.mounts
ports = var.ports ports = var.ports
placement_constraints = var.placement_constraints placement_constraints = var.placement_constraints
} }
locals { locals {

View file

@ -33,8 +33,8 @@ variable "stack_name" {
type = string type = string
} }
variable "service_name" { variable "service_name" {
default = "mysql" default = "mysql"
type = string type = string
description = "The name of the service to create." description = "The name of the service to create."
} }
variable "networks" { variable "networks" {

View file

@ -28,8 +28,8 @@ variable "stack_name" {
type = string type = string
} }
variable "service_name" { variable "service_name" {
default = "postgres" default = "postgres"
type = string type = string
description = "The name of the service to create." description = "The name of the service to create."
} }
variable "networks" { variable "networks" {

View file

@ -2,7 +2,7 @@ module "service" {
source = "../../docker/service" source = "../../docker/service"
image = "${var.postgres_image}:${var.postgres_version}" image = "${var.postgres_image}:${var.postgres_version}"
stack_name = var.stack_name stack_name = var.stack_name
service_name = var.service_name service_name = var.service_name
networks = var.networks networks = var.networks
healthcheck = ["CMD-SHELL", "pg_isready", "-U", local.username, "-d", local.database] healthcheck = ["CMD-SHELL", "pg_isready", "-U", local.username, "-d", local.database]
healthcheck_interval = "10s" healthcheck_interval = "10s"