-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
125 lines (99 loc) · 2.45 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
variable "POOL_NAME" {
type = string
default = "all_volumes"
}
variable "VOL_NAME" {
type = string
default = "sda1"
}
variable "VOL_DESTINY" {
type = string
#default = "/storage/libvirt-volumes/"
default = "/tfdata/pool_after"
}
variable "IMG_SOURCE" {
type = string
#default = "/storage/ubuntu_core/focal-server-cloudimg-amd64.img"
default = "/tfdata/ubuntu-core/jammy-server-cloudimg-amd64.img"
}
variable "MEMORY_SIZE" {
type = string
default = 1024*2
}
variable "VCPU_SIZE" {
type = number
default = 2
}
variable "VM_USER" {
type = string
default = "suporte"
}
variable "VM_HOSTNAME" {
type = string
default = "worker"
}
variable "VM_IMG_URL" {
type = string
default = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
}
variable "VM_VOLUME_SIZE" {
type = number
default = 1024*1024*1024*10
}
variable "VM_IMG_FORMAT" {
type = string
default = "qcow2"
}
variable "VM_CIDR_RANGE" {
type = string
default = "192.168.1.0/24"
}
variable "ssh_key" {
type = string
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDY8kTtEZrDAM9Q+E8quZuggErqXGOZCNKHvDt+L8RSQajHn1flZw0U1I+opV/OOlLTy0gy1IIJsqYHk4zyxKYMTevUwHxdaQB0BlAhMZMBD4pn4K6V+wrd16iBL07jk7YVBkAl18WS+c0v6PssarbEkDyHK3+jsnWjMIiQziP9wZf74JDCSwdtdcPSt0mcxdTyZ5DmkTJhoxlkflJyM/7m4AM6cABuBAFfubhCDDz/a3/90IacgJaFV1Vx1ZBf0/6fn1p1QH93XYo/aNyT40OcfhQPJ436LcsFrfRmozQiX/0oQGFQJ2o27TNhgbe15opQBS5hGgJh7bmorrRUMKZwz4yFfT5OwZ+TSXVSbIQtXWXWbl7CB52In6En2OzQWG3MVQxmXKE5hJ05ACte5pqdXSX+bEKJjjU/Eyovq9EqsRMkkphDtuc77sggCJngVq4H+je5jh/Epi87pwnzwapfKFdjHHAwHPyH3R0SSpBxyERZT8JAYrCqMe3F0qe0knE= igor.oliveira@lsd-pc"
}
variable "auth_access" {
type = bool
default = true
}
variable "vms" {
type = string
default = "sandr"
}
variable "network" {
type = string
default = "network-name"
}
variable "interface" {
type = string
default = "ens3"
}
variable "vms_address" {
type = list
default = ["10.0.0.2", "10.0.0.5"]
}
variable "net_gateway" {
type = string
default = "10.0.0.1"
}
variable "net_mask" {
type = string
default = "24"
}
variable "dns_addresses" {
type = list
default = ["1.1.1.1", "8.8.8.8"]
}
variable "disk" {
type = number
default = 21474836480 #20G
}
#variable "mac-address" {
# type = string
# default = "52:54:00:ee:3b:c1"
#
#}
variable "HOSTNAME" {
type = string
default = "VM"
}