File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
skeleton/{{cookiecutter.environment}}/terraform Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ variable "volume_backed_instances" {
54
54
default = false
55
55
}
56
56
57
+ variable "root_volume_size" {
58
+ default = 15
59
+ }
60
+
57
61
variable "k3s_token" {
58
62
type = string
59
63
}
@@ -94,6 +98,7 @@ module "cluster" {
94
98
}
95
99
96
100
volume_backed_instances = var. volume_backed_instances
101
+ root_volume_size = var. root_volume_size
97
102
98
103
environment_root = var. environment_root
99
104
# Can reduce volume size a lot for short-lived CI clusters:
Original file line number Diff line number Diff line change @@ -19,4 +19,6 @@ module "compute" {
19
19
k3s_server = [for n in openstack_compute_instance_v2 . control [" control" ]. network : n . fixed_ip_v4 if n . access_network ][0 ]
20
20
security_group_ids = [for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ]
21
21
baremetal_nodes = data. external . baremetal_nodes . result
22
+ volume_backed_instances = var. volume_backed_instances
23
+ root_volume_size = var. root_volume_size
22
24
}
Original file line number Diff line number Diff line change @@ -53,15 +53,11 @@ variable "vnic_profile" {
53
53
}
54
54
55
55
variable "volume_backed_instances" {
56
- description = " Whether to use volumes for root disks"
57
56
type = bool
58
- default = false
59
57
}
60
58
61
59
variable "root_volume_size" {
62
- description = " Size of volume for root volumes if using volume backed instances, in Gb"
63
60
type = number
64
- default = 40
65
61
}
66
62
67
63
variable "security_group_ids" {
You can’t perform that action at this time.
0 commit comments