-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
87 lines (76 loc) · 1.94 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
variable "harvester_kubeconfig_path" {
description = "Harvester cluster Kubeconfig file name with full path"
type = string
default = "/home/johndoe/harvester/harvester-cluster.yaml"
}
variable "vm_data" {
description = "Virtual machine data"
type = object({
name = string
hostname = string
namespace = string
description = string
tags = map(string)
cpus = number
memory = string
disks = list (object({
name = string
size = string
boot_order = number
}))
})
default = {
name = "opensuse-dev"
hostname = "opensuse-dev"
namespace = "default"
description = "openSUSE test virtual machine"
tags = {"ssh-user"="opensuse"}
cpus = 2
memory = "2Gi"
disks = [
{
name = "rootdisk"
size = "40Gi"
boot_order = 1
},
{
name = "emptydisk"
size = "10Gi"
boot_order = 2
}
]
}
}
variable "vm_network" {
description = "VLAN for virtual machine service interfaces"
type = object({
vlanid = string
namespace = string
})
default = {
#Remember, I'm using a value here because we already had a vlan I wanted to use. If not you'd have to create one
vlanid = "vlan-65"
namespace = "default"
}
}
variable "os_image" {
description = "OS image for virtual machines"
type = object({
name = string
namespace = string
display_name = string
description = string
source_type = string
url = string
tags = map(string)
})
default = {
name = "opensuse-15-sp4-cloudinit"
namespace = "default"
display_name = "openSUSE Leap 15.4"
description = ""
source_type = "download"
url = "https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.4/images/openSUSE-Leap-15.4.x86_64-NoCloud.qcow2"
tags = {"format"= "qcow2","qemu_gest_agent_enabled"="true"}
}
}