issue-1: concatenate and remove default vars

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
Nicolas Boufidjeline 2022-12-09 16:36:25 +01:00
parent db27c24ddd
commit 49eed52131
2 changed files with 29 additions and 86 deletions

View File

@ -1,13 +1,8 @@
#Netbox #Netbox
netbox_server_url = "https://netbox.exemple.net" netbox_server_url = "https://netbox.exemple.net"
netbox_api_token = "" netbox_api_token = ""
netbox_allow_insecure_https = false
#XO #XO
xo_url = "ws://xo.example.net" xo_url = "ws://xo.example.net"
xo_username = "admin" xo_username = "admin"
xo_password = "passwd" xo_password = "passwd"
xo_insecure = true

102
var.tf
View File

@ -1,100 +1,48 @@
#Provider #Providers
variable "netbox_server_url" {
type = string
}
variable "netbox_api_token" { ## Netbox
type = string variable "netbox_server_url" { type = string }
} variable "netbox_api_token" { type = string }
variable "netbox_allow_insecure_https" { variable "netbox_allow_insecure_https" {
type = string type = string
default = false
} }
variable "xo_url" { ## Xen Orchestra
type = string variable "xo_url" { type = string }
} variable "xo_username" { type = string }
variable "xo_password" { type = string }
variable "xo_username" {
type = string
}
variable "xo_password" {
type = string
}
variable "xo_insecure" { variable "xo_insecure" {
type = string type = string
default = true
} }
#Main #Main
variable "netbox_prefix" { variable "netbox_prefix" { type = string }
type = string variable "netmask_netbox" { type = string }
} variable "gateway" { type = string }
variable "netmask" { type = string }
variable "netmask_netbox" { variable "dns_name" { type = string }
type = string variable "storage" { type = string }
} variable "network" { type = string }
variable "pool" { type = string }
variable "gateway" { variable "template" { type = string }
type = string
}
variable "netmask" {
type = string
}
variable "dns_name" {
type = string
}
variable "storage" {
type = string
}
variable "network" {
type = string
}
variable "pool" {
type = string
}
variable "template" {
type = string
}
variable "playbook" { variable "playbook" {
type = string type = string
default = "" default = ""
} }
variable "cpu" { variable "cpu" { type = number }
type = number variable "ram" { type = number }
} variable "name" { type = string }
variable "desc" { type = string }
variable "ram" { variable "disk_size" { type = number }
type = number variable "ssh_keys" { type = string }
}
variable "name" {
type = string
}
variable "desc" {
type = string
}
variable "disk_size" {
type = number
}
variable "ssh_keys" {
type = string
}
variable "vm_tags" { variable "vm_tags" {
type = list type = list
default = [] default = []