File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ resource "openstack_compute_floatingip_associate_v2" "registry" {
84
84
85
85
resource "null_resource" "registry" {
86
86
connection {
87
+ bastion_user = var. create_bastion ? var. image_user : null
88
+ bastion_private_key = var. create_bastion ? tls_private_key. default . private_key_pem : null
89
+ bastion_host = var. create_bastion ? openstack_compute_floatingip_associate_v2. bastion [0 ]. floating_ip : null
87
90
user = var. image_user
88
91
private_key = tls_private_key. default . private_key_pem
89
92
agent = false
@@ -131,6 +134,10 @@ resource "openstack_compute_instance_v2" "lab" {
131
134
name = var. lab_net_ipv4
132
135
}
133
136
137
+ timeouts {
138
+ create = " 30m"
139
+ }
140
+
134
141
depends_on = [openstack_compute_keypair_v2 . ufn_lab_key , null_resource. registry ]
135
142
}
136
143
@@ -150,6 +157,9 @@ resource "null_resource" "lab" {
150
157
count = var. lab_count
151
158
152
159
connection {
160
+ bastion_user = var. create_bastion ? var. image_user : null
161
+ bastion_private_key = var. create_bastion ? tls_private_key. default . private_key_pem : null
162
+ bastion_host = var. create_bastion ? openstack_compute_floatingip_associate_v2. bastion [0 ]. floating_ip : null
153
163
user = var. image_user
154
164
private_key = tls_private_key. default . private_key_pem
155
165
agent = false
You can’t perform that action at this time.
0 commit comments