File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module "vsc_instance" {
20
20
instance_flex_memory_in_gbs = var. instance_flex_memory_in_gbs
21
21
instance_flex_ocpus = var. instance_flex_ocpus
22
22
# operating system parameters
23
- ssh_public_keys = var. ssh_public_keys != " " ? var. ssh_public_keys : file (var. ssh_public_key_path )
23
+ ssh_public_keys = var. ssh_public_keys != " " ? var. ssh_public_keys : var . ssh_public_key_path != " " ? file (var. ssh_public_key_path ) : " "
24
24
user_data = base64encode (data. template_file . cloud-config . rendered )
25
25
# networking parameters
26
26
public_ip = var. public_ip
Original file line number Diff line number Diff line change 23
23
},
24
24
{
25
25
"src" : " terraform/orm/provider_orm.tf" ,
26
+
26
27
"dst" : " provider.tf"
27
28
}
28
29
]
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ variable "defined_tags" {
58
58
}
59
59
60
60
61
-
62
61
# compute instance parameters
62
+
63
63
variable "shape" {
64
64
description = " The shape of an instance."
65
65
type = string
@@ -91,23 +91,20 @@ variable "instance_ad_number" {
91
91
default = 1
92
92
}
93
93
94
-
95
-
96
94
# operating system parameters
97
95
98
- variable "ssh_public_key_path" {
99
- description = " Public SSH key file path"
100
- type = string
101
- default = " "
102
-
103
- }
104
-
96
+ # if both ssh_public-keys and ssh_public_key_path are provided, ssh_public_keys takes priority
105
97
variable "ssh_public_keys" {
106
98
description = " Public SSH key(s) provided as string value"
107
99
type = string
108
100
default = " "
109
101
}
110
102
103
+ variable "ssh_public_key_path" {
104
+ description = " Public SSH key file path"
105
+ type = string
106
+ default = " "
107
+
111
108
112
109
# networking parameters
113
110
You can’t perform that action at this time.
0 commit comments