File tree Expand file tree Collapse file tree 5 files changed +14
-0
lines changed
environments/skeleton/{{cookiecutter.environment}}/terraform Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,6 @@ module "compute" {
15
15
vnic_profile = lookup (each. value , " vnic_profile" , var. vnic_profile )
16
16
key_pair = var. key_pair
17
17
environment_root = var. environment_root
18
+ k3s_token = var. k3s_token
18
19
security_group_ids = [for o in data . openstack_networking_secgroup_v2 . nonlogin : o . id ]
19
20
}
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ resource "openstack_compute_instance_v2" "compute" {
46
46
47
47
metadata = {
48
48
environment_root = var.environment_root
49
+ k3s_token = var.k3s_token
49
50
}
50
51
51
52
user_data = <<- EOF
Original file line number Diff line number Diff line change @@ -67,3 +67,8 @@ variable "root_volume_size" {
67
67
variable "security_group_ids" {
68
68
type = list
69
69
}
70
+
71
+ variable "k3s_token" {
72
+ description = " Random cryptographically secure string for K3s token"
73
+ type = string
74
+ }
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ resource "openstack_compute_instance_v2" "control" {
76
76
77
77
metadata = {
78
78
environment_root = var.environment_root
79
+ k3s_token = var.k3s_token
79
80
}
80
81
81
82
user_data = <<- EOF
@@ -124,6 +125,7 @@ resource "openstack_compute_instance_v2" "login" {
124
125
125
126
metadata = {
126
127
environment_root = var.environment_root
128
+ k3s_token = var.k3s_token
127
129
}
128
130
129
131
user_data = <<- EOF
Original file line number Diff line number Diff line change @@ -131,3 +131,8 @@ variable "root_volume_size" {
131
131
type = number
132
132
default = 40
133
133
}
134
+
135
+ variable "k3s_token" {
136
+ description = " Random cryptographically secure string for K3s token"
137
+ type = string
138
+ }
You can’t perform that action at this time.
0 commit comments