tpotce/cloud/terraform/otc/variables.tf

87 lines
1.7 KiB
Terraform
Raw Normal View History

# cloud-init configuration
variable "timezone" {
default = "UTC"
}
variable "linux_password" {
#default = "LiNuXuSeRPaSs#"
description = "Set a password for the default user"
validation {
condition = length(var.linux_password) > 0
error_message = "Please specify a password for the default user."
}
}
# Cloud resources name configuration
variable "secgroup_name" {
default = "tpot-secgroup"
}
variable "secgroup_desc" {
default = "T-Pot Security Group"
}
variable "network_name" {
default = "tpot-network"
}
variable "subnet_name" {
default = "tpot-subnet"
}
variable "router_name" {
default = "tpot-router"
}
variable "ecs_prefix" {
default = "tpot-"
}
# ECS configuration
2020-08-26 09:45:17 +00:00
variable "availability_zone" {
2021-04-15 12:59:03 +00:00
default = "eu-de-03"
description = "Select an availability zone"
}
variable "flavor" {
2021-04-15 12:59:03 +00:00
default = "s3.medium.8"
description = "Select a compute flavor"
}
variable "key_pair" {
#default = ""
description = "Specify your SSH key pair"
validation {
condition = length(var.key_pair) > 0
error_message = "Please specify a Key Pair."
}
}
variable "volume_size" {
2021-04-15 12:59:03 +00:00
default = "128"
description = "Set the volume size"
}
# These will go in the generated tpot.conf file
variable "tpot_flavor" {
2021-04-15 12:59:03 +00:00
default = "STANDARD"
description = "Specify your tpot flavor [STANDARD, SENSOR, INDUSTRIAL, COLLECTOR, NEXTGEN, MEDICAL]"
}
variable "web_user" {
2021-04-15 12:59:03 +00:00
default = "webuser"
description = "Set a username for the web user"
}
variable "web_password" {
#default = "w3b$ecret"
description = "Set a password for the web user"
validation {
condition = length(var.web_password) > 0
error_message = "Please specify a password for the web user."
}
}