mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
feat(infrastructure): add basic terraform resources
This commit is contained in:
52
tofu/config/maxscale/variables.tf
Normal file
52
tofu/config/maxscale/variables.tf
Normal file
@@ -0,0 +1,52 @@
|
||||
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
|
||||
}
|
||||
|
||||
variable "mariadb_user_host" {
|
||||
description = "Host (wildcard or specific) for the application user"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "maxscale_ip" {
|
||||
description = "MetalLB IP for MaxScale service"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "service_ip" {
|
||||
description = "MetalLB IP for general MariaDB service"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "primary_ip" {
|
||||
description = "MetalLB IP for MariaDB primary service"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "secondary_ip" {
|
||||
description = "MetalLB IP for MariaDB secondary service"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "phpmyadmin_enabled" {
|
||||
description = "Whether to deploy phpMyAdmin auxiliary components"
|
||||
type = bool
|
||||
}
|
||||
|
||||
variable "mariadb_user_password" {
|
||||
description = "Password for the application MariaDB user"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user