2025-06-06 23:49:38 +02:00
|
|
|
variable "tag" {
|
|
|
|
|
description = "The version of app to install"
|
|
|
|
|
type = string
|
|
|
|
|
default = "latest"
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-13 22:35:35 +02:00
|
|
|
variable "shares" {
|
2025-06-06 23:49:38 +02:00
|
|
|
description = "Path to the shared folder on the host"
|
2025-10-13 22:35:35 +02:00
|
|
|
type = list(object({
|
|
|
|
|
name = string
|
|
|
|
|
path = string
|
|
|
|
|
comment = string
|
|
|
|
|
valid_users = optional(list(string), ["@smb"])
|
|
|
|
|
browseable = optional(bool, true)
|
|
|
|
|
writable = optional(bool, true)
|
|
|
|
|
read_only = optional(bool, false)
|
|
|
|
|
force_user = optional(string, "root")
|
|
|
|
|
force_group = optional(string, "root")
|
|
|
|
|
}))
|
2025-06-06 23:49:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "samba_username" {
|
|
|
|
|
description = "Username for Samba access"
|
|
|
|
|
type = string
|
|
|
|
|
default = "samba"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "samba_password" {
|
|
|
|
|
description = "Password for Samba access"
|
|
|
|
|
type = string
|
|
|
|
|
default = "samba"
|
|
|
|
|
sensitive = true
|
|
|
|
|
}
|
2025-10-13 22:35:35 +02:00
|
|
|
|
|
|
|
|
variable "host_port_enabled" {
|
|
|
|
|
description = "Enable hostPort for SMB ports (445 and 139). Useful for direct access on the node IP."
|
|
|
|
|
type = bool
|
|
|
|
|
default = false
|
|
|
|
|
}
|