forked from MonolithProjects/terraform-libvirt-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
130 lines (108 loc) · 2.37 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
126
127
128
129
130
variable "os_img_url" {
description = "URL to the OS image"
default = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
}
variable "autostart" {
description = "Autostart the domain"
default = true
}
variable "vm_count" {
description = "Number of VMs"
default = 1
}
variable "index_start" {
description = "From where the indexig start"
default = 1
}
variable "vm_hostname_prefix" {
description = "VM hostname prefix"
default = "vm"
}
variable "hostname" {
description = "VM hostname or FQDN"
type = string
default = "server"
}
variable "memory" {
description = "RAM in MB"
type = string
default = "1024"
}
variable "hugepages" {
description = "Set Hugepages"
type = bool
default = false
}
variable "vcpu" {
description = "Number of vCPUs"
default = 1
}
variable "pool" {
description = "Storage pool name"
default = "default"
}
variable "system_volume" {
description = "System Volume size (GB)"
default = 10
}
variable "share_filesystem" {
type = object({
source = string
target = string
readonly = bool
mode = string
})
default = {
source = null
target = null
readonly = false
mode = null
}
}
variable "dhcp" {
description = "Use DHCP or Static IP settings"
type = bool
default = false
}
variable "bridge" {
description = "Bridge interface"
default = "virbr0"
}
variable "ip_address" {
description = "List of IP addresses"
type = list(string)
default = [ "192.168.123.101" ]
}
variable "ip_nameserver" {
description = "IP addresses of a nameserver"
default = "192.168.123.1"
}
variable "ip_gateway" {
description = "IP addresses of a gateway"
default = "192.168.123.1"
}
variable "ssh_admin" {
description = "Admin user with ssh access"
default = "ssh-admin"
}
variable "ssh_keys" {
description = "List of public ssh keys"
type = list(string)
default = []
}
variable "local_admin" {
description = "Admin user without ssh access"
default = "local-admin"
}
variable "local_admin_passwd" {
description = "Local admin user password"
default = "password_example"
}
variable "time_zone" {
description = "Time Zone"
default = "UTC"
}
variable "ssh_private_key" {
description = "Private key for SSH connection test"
default = "~/.ssh/id_ed25519"
}