1
- # ### Storage ####
2
-
3
1
variable "libvirt_disk_path" {
4
2
description = " Path to libvirt Disk pool"
5
3
default = " /mnt/terra"
6
4
}
7
5
8
- # ### Virtual Machine ####
9
-
10
6
variable "os_img_url" {
11
7
description = " URL to the OS image"
12
8
default = " https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
@@ -36,10 +32,14 @@ variable "memory" {
36
32
37
33
variable "vcpu" {
38
34
description = " Number of vCPUs"
39
- type = string
40
35
default = 1
41
36
}
42
37
38
+ variable "system_volume" {
39
+ description = " System Volume size (GB)"
40
+ default = 10
41
+ }
42
+
43
43
variable "dhcp" {
44
44
description = " Use DHCP or Static IP settings"
45
45
type = bool
@@ -52,25 +52,43 @@ variable "ip_address" {
52
52
default = [ " 192.168.123.1" ]
53
53
}
54
54
55
+ variable "ip_nameserver" {
56
+ description = " IP addresses of a nameserver"
57
+ default = " 192.168.123.1"
58
+ }
59
+
60
+ variable "ip_gateway" {
61
+ description = " IP addresses of a gateway"
62
+ default = " 192.168.123.1"
63
+ }
64
+
65
+ variable "ssh_admin" {
66
+ description = " Admin user with ssh access"
67
+ default = " ssh-admin"
68
+ }
69
+
55
70
variable "ssh_keys" {
56
71
description = " List of public ssh keys"
57
72
type = list (string )
58
73
default = []
59
74
}
60
75
61
- variable "admin_passwd " {
62
- description = " Admin user password "
63
- default = " password_example "
76
+ variable "local_admin " {
77
+ description = " Admin user without ssh access "
78
+ default = " local-admin "
64
79
}
65
80
66
- # ### Connection test (Optional) ###
81
+ variable "local_admin_passwd" {
82
+ description = " Local admin user password"
83
+ default = " password_example"
84
+ }
67
85
68
- variable "ssh_username " {
69
- description = " User for SSH test "
70
- default = " ssh-user "
86
+ variable "time_zone " {
87
+ description = " Time Zone "
88
+ default = " UTC "
71
89
}
72
90
73
91
variable "ssh_private_key" {
74
- description = " Private key for SSH test"
92
+ description = " Private key for SSH connection test"
75
93
default = " ~/.ssh/id_ed25519"
76
94
}
0 commit comments