mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
feat(docs): codebase refactor - added src directory
This commit is contained in:
147
7project/src/tofu/variables.tf
Normal file
147
7project/src/tofu/variables.tf
Normal file
@@ -0,0 +1,147 @@
|
||||
variable "metallb_ip_range" {
|
||||
description = "IP address range for MetalLB address pool (e.g., 10.80.0.100-10.80.0.240)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "mariadb_password" {
|
||||
description = "Password for standard MariaDB users (stored in Secret). Keep secure."
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "mariadb_root_password" {
|
||||
description = "Root password for MariaDB (stored in Secret). Keep secure."
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "mariadb_user_name" {
|
||||
description = "Application username to create and grant privileges to"
|
||||
type = string
|
||||
default = "user"
|
||||
}
|
||||
|
||||
variable "mariadb_user_host" {
|
||||
description = "Host (wildcard or specific) for the application user"
|
||||
type = string
|
||||
default = "%"
|
||||
}
|
||||
|
||||
variable "metallb_maxscale_ip" {
|
||||
description = "MetalLB IP for MaxScale service"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "metallb_service_ip" {
|
||||
description = "MetalLB IP for general MariaDB service"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "metallb_primary_ip" {
|
||||
description = "MetalLB IP for MariaDB primary service"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "metallb_secondary_ip" {
|
||||
description = "MetalLB IP for MariaDB secondary service"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "phpmyadmin_enabled" {
|
||||
description = "Whether to deploy phpMyAdmin auxiliary components"
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "mariadb_user_password" {
|
||||
description = "Password for the application MariaDB user"
|
||||
type = string
|
||||
sensitive = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "cloudflare_api_token" {
|
||||
type = string
|
||||
description = "Cloudflare API token"
|
||||
sensitive = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "cloudflare_tunnel_name" {
|
||||
type = string
|
||||
description = "Cloudflare Tunnel Name"
|
||||
default = "cluster-tunnel"
|
||||
nullable = false
|
||||
}
|
||||
variable "cloudflare_email" {
|
||||
type = string
|
||||
description = "Cloudflare Email"
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "cloudflare_domain" {
|
||||
type = string
|
||||
description = "Cloudflare Domain"
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "cloudflare_account_id" {
|
||||
type = string
|
||||
description = "Cloudflare Account ID"
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "argocd_admin_password" {
|
||||
type = string
|
||||
nullable = false
|
||||
sensitive = true
|
||||
description = "ArgoCD admin password"
|
||||
}
|
||||
|
||||
variable "rabbitmq-password" {
|
||||
type = string
|
||||
nullable = false
|
||||
sensitive = true
|
||||
description = "Admin password for RabbitMQ user"
|
||||
}
|
||||
|
||||
variable "s3_key_id" {
|
||||
description = "S3 Key ID for backups"
|
||||
type = string
|
||||
sensitive = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "s3_key_secret" {
|
||||
description = "S3 Key Secret for backups"
|
||||
type = string
|
||||
sensitive = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "s3_enabled" {
|
||||
description = "Enable S3 backups"
|
||||
type = bool
|
||||
}
|
||||
|
||||
variable "s3_endpoint" {
|
||||
description = "S3 endpoint for backups"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "s3_region" {
|
||||
description = "S3 region for backups"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "s3_bucket" {
|
||||
description = "S3 bucket name for backups"
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user