2022-12-09 16:36:25 +01:00
|
|
|
#Providers
|
2022-04-25 13:50:01 +02:00
|
|
|
|
2022-12-09 16:36:25 +01:00
|
|
|
## Netbox
|
|
|
|
variable "netbox_server_url" { type = string }
|
|
|
|
variable "netbox_api_token" { type = string }
|
2022-04-25 13:50:01 +02:00
|
|
|
variable "netbox_allow_insecure_https" {
|
|
|
|
type = string
|
2022-12-09 16:36:25 +01:00
|
|
|
default = false
|
2022-04-25 13:50:01 +02:00
|
|
|
}
|
|
|
|
|
2022-12-09 16:36:25 +01:00
|
|
|
## Xen Orchestra
|
|
|
|
variable "xo_url" { type = string }
|
|
|
|
variable "xo_username" { type = string }
|
|
|
|
variable "xo_password" { type = string }
|
2022-04-25 13:50:01 +02:00
|
|
|
variable "xo_insecure" {
|
|
|
|
type = string
|
2022-12-09 16:36:25 +01:00
|
|
|
default = true
|
2022-04-25 13:50:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Main
|
2022-12-09 16:36:25 +01:00
|
|
|
variable "netbox_prefix" { type = string }
|
|
|
|
variable "netmask_netbox" { type = string }
|
|
|
|
variable "gateway" { type = string }
|
|
|
|
variable "netmask" { type = string }
|
2022-04-25 13:50:01 +02:00
|
|
|
|
2022-12-09 16:36:25 +01:00
|
|
|
variable "dns_name" { type = string }
|
|
|
|
variable "storage" { type = string }
|
|
|
|
variable "network" { type = string }
|
|
|
|
variable "pool" { type = string }
|
|
|
|
variable "template" { type = string }
|
2022-04-25 13:50:01 +02:00
|
|
|
|
|
|
|
variable "playbook" {
|
|
|
|
type = string
|
2022-07-01 19:31:17 +02:00
|
|
|
default = ""
|
2022-04-25 13:50:01 +02:00
|
|
|
}
|
|
|
|
|
2022-12-09 16:36:25 +01:00
|
|
|
variable "cpu" { type = number }
|
|
|
|
variable "ram" { type = number }
|
|
|
|
variable "name" { type = string }
|
|
|
|
variable "desc" { type = string }
|
|
|
|
variable "disk_size" { type = number }
|
|
|
|
variable "ssh_keys" { type = string }
|
2022-07-01 18:48:48 +02:00
|
|
|
variable "vm_tags" {
|
|
|
|
type = list
|
2022-07-01 19:31:17 +02:00
|
|
|
default = []
|
2022-12-09 16:36:25 +01:00
|
|
|
}
|