147 lines
3.4 KiB
HCL
147 lines
3.4 KiB
HCL
# -----------------------------------------------------------------------------
|
|
# STACKIT Cloud: Core Configuration Variables
|
|
# -----------------------------------------------------------------------------
|
|
|
|
variable "project_id" {
|
|
type = string
|
|
}
|
|
|
|
variable "service_account_key_path" {
|
|
type = string
|
|
}
|
|
|
|
variable "default_region" {
|
|
type = string
|
|
default ="eu01"
|
|
}
|
|
|
|
variable "default_az" {
|
|
type = string
|
|
}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Network Variables
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# --- Global Settings ---
|
|
|
|
variable "sophos_nets_routed" {
|
|
description = "Defines if the networks should be routed (true/false)"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
# --- Nameservers ---
|
|
|
|
variable "sophos_wan_nameservers" {
|
|
description = "List of Nameservers for the WAN interface"
|
|
type = list(string)
|
|
default = ["1.1.1.1", "8.8.8.8"]
|
|
}
|
|
|
|
variable "sophos_default_nameservers" {
|
|
description = "List of Nameservers for internal networks (LAN, MGMT, SYNC)"
|
|
type = list(string)
|
|
default = ["8.8.8.8", "9.9.9.9"]
|
|
}
|
|
|
|
# --- Network Ranges (Prefixes) ---
|
|
|
|
variable "sophos_wan_net_range" {
|
|
description = "CIDR block for the WAN network"
|
|
type = string
|
|
default = "10.220.1.0/24"
|
|
}
|
|
|
|
variable "sophos_lan_net_range" {
|
|
description = "CIDR block for the LAN network"
|
|
type = string
|
|
default = "10.220.0.0/24"
|
|
}
|
|
|
|
variable "sophos_mgmt_net_range" {
|
|
description = "CIDR block for the MGMT network"
|
|
type = string
|
|
default = "10.220.2.0/24"
|
|
}
|
|
|
|
variable "sophos_sync_net_range" {
|
|
description = "CIDR block for the SYNC network"
|
|
type = string
|
|
default = "10.220.3.0/24"
|
|
}
|
|
|
|
# --- Specific Wan HA VIP ---
|
|
|
|
variable "sophos_wan_vip" {
|
|
description = "The specific IPv4 address for the High Availability VIP interface"
|
|
type = string
|
|
default = "10.220.1.60"
|
|
}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# VM Variables
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# --- Image File Paths ---
|
|
|
|
variable "sophos_primary_image_path" {
|
|
description = "Local path to the primary Sophos QCOW2 image file"
|
|
type = string
|
|
default = "./PRIMARY-DISK.qcow2"
|
|
}
|
|
|
|
variable "sophos_secondary_image_path" {
|
|
description = "Local path to the secondary (auxiliary) Sophos QCOW2 image file"
|
|
type = string
|
|
default = "./AUXILIARY-DISK.qcow2"
|
|
}
|
|
|
|
# --- VM Flavor ---
|
|
|
|
variable "flavor" {
|
|
type = string
|
|
description = "Flavor of the Sophos Appliances"
|
|
default = "m2i.2"
|
|
}
|
|
|
|
# --- IPs Sophos 1 ---
|
|
|
|
variable "sophos1_mgmt_ip" {
|
|
description = "Management IP Sophos 1"
|
|
type = string
|
|
default = "10.220.2.10"
|
|
}
|
|
|
|
variable "sophos1_wan_ip" {
|
|
description = "WAN IP Sophos 1"
|
|
type = string
|
|
default = "10.220.1.11"
|
|
}
|
|
|
|
variable "sophos1_lan_ip" {
|
|
description = "LAN IP Sophos 1"
|
|
type = string
|
|
default = "10.220.0.12"
|
|
}
|
|
|
|
# --- IPs Sophos 2 ---
|
|
|
|
variable "sophos2_mgmt_ip" {
|
|
description = "Management IP Sophos 2"
|
|
type = string
|
|
default = "10.220.2.20"
|
|
}
|
|
|
|
variable "sophos2_wan_ip" {
|
|
description = "WAN IP Sophos 2"
|
|
type = string
|
|
default = "10.220.1.22"
|
|
}
|
|
|
|
variable "sophos2_lan_ip" {
|
|
description = "LAN IP Sophos 2"
|
|
type = string
|
|
default = "10.220.0.22"
|
|
}
|
|
|