Patrick de Ruiter 3ee45d2603
All checks were successful
Code Quality & Security Scan / TFLint (push) Successful in 18s
Code Quality & Security Scan / Checkov Security Scan (push) Successful in 35s
Code Quality & Security Scan / SonarQube Trigger (push) Successful in 35s
Fix all TFLint warnings
- Added version constraints for vsphere (~> 2.0) and vault (~> 5.0) providers
- Added terraform required_version (>= 1.0)
- Removed unused variables: domain, esxi_hosts, port_groups
- Removed unused data source: vsphere_host
- All TFLint checks now pass successfully
2025-11-01 23:02:03 +01:00

58 lines
1.3 KiB
HCL

variable "datacenter" {
description = "vSphere data center"
type = string
}
variable "cluster_name" {
description = "vSphere Cluster Name"
type = string
}
# Environment
variable "environment" {
description = "Environment name can be: dev, tst, acc, uat, prod, shared or tools"
type = string
}
# Resource Groups
variable "resource_groups" {
type = map(object({
name = string
cpu_reservation = optional(number, 0)
cpu_expandable = optional(bool, true)
cpu_limit = optional(number, -1)
cpu_shares = optional(string, "normal")
memory_reservation = optional(number, 0)
memory_expandable = optional(bool, true)
memory_limit = optional(number, -1)
memory_shares = optional(string, "normal")
}))
description = "Map of resource groups to create"
default = {
kubernetes = {
name = "Kubernetes"
}
docker = {
name = "Docker"
}
infra = {
name = "Infra"
}
}
}
# Vault approle
variable "role_id" {
description = "Role ID for Vault AppRole authentication"
type = string
sensitive = true
}
variable "secret_id" {
description = "Secret ID for Vault AppRole authentication"
type = string
sensitive = true
}