43 lines
800 B
HCL
43 lines
800 B
HCL
# Token variable definition
|
|
variable "linode_token" {}
|
|
|
|
# Root password variable defintion
|
|
variable "root_pass" {}
|
|
|
|
# SSH Public key variable definition
|
|
variable "authorized_keys" {
|
|
type = list(string)
|
|
}
|
|
|
|
# Name variable definition
|
|
variable "name" {
|
|
default = "ml"
|
|
}
|
|
|
|
# Environment variable definition
|
|
variable "env" {
|
|
default = "dev"
|
|
}
|
|
|
|
# Defining a variable source OS image for an instance
|
|
variable "image" {
|
|
default = "linode/debian11"
|
|
}
|
|
|
|
# Definition of an instance type variable depending on the choice of tariff
|
|
variable "server_type" {
|
|
# default = "g1-gpu-rtx6000-1"
|
|
default = "g6-dedicated-32"
|
|
}
|
|
|
|
# Definition of the region in which the instance will be created
|
|
variable "region" {
|
|
default = "eu-central"
|
|
}
|
|
|
|
# LOCALS
|
|
|
|
# Server name
|
|
locals {
|
|
name = "${var.name}-${var.env}"
|
|
}
|