Some checks failed
Code Quality & Security Scan / TFLint (push) Successful in 20s
Code Quality & Security Scan / Terraform Destroy (push) Has been skipped
Code Quality & Security Scan / Tfsec Security Scan (push) Successful in 25s
Code Quality & Security Scan / Checkov Security Scan (push) Successful in 37s
Code Quality & Security Scan / Terraform Tests (push) Failing after 24s
Code Quality & Security Scan / SonarQube Trigger (push) Has been skipped
Code Quality & Security Scan / Terraform Init (push) Has been skipped
Code Quality & Security Scan / Terraform Apply (push) Has been skipped
66 lines
1.6 KiB
HCL
66 lines
1.6 KiB
HCL
|
|
variable "datacenter" {
|
|
description = "vSphere data center (provided via CI/CD secrets as TF_VAR_datacenter)"
|
|
type = string
|
|
default = "WBYC-DC01"
|
|
}
|
|
|
|
variable "cluster_name" {
|
|
description = "vSphere Cluster Name (provided via CI/CD secrets as TF_VAR_cluster_name)"
|
|
type = string
|
|
default = "wbyc-cluster01"
|
|
}
|
|
|
|
# Environment
|
|
variable "environment" {
|
|
description = "Environment name can be: dev, tst, acc, uat, prod, shared or tools (provided via CI/CD secrets as TF_VAR_environment)"
|
|
type = string
|
|
default = "prd"
|
|
}
|
|
|
|
# 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"
|
|
}
|
|
databases = {
|
|
name = "Databases"
|
|
}
|
|
app-servers = {
|
|
name = "Application Servers"
|
|
}
|
|
}
|
|
}
|
|
|
|
# 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
|
|
}
|