File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,8 @@ resource "ibm_resource_instance" "created_service_instance" {
2424 delete = " 10m"
2525 }
2626}
27+ resource "time_sleep" "wait_for_workspace" {
28+ count = var. service_instance_name == " " ? 1 : 0
29+ depends_on = [ibm_resource_instance . created_service_instance ]
30+ create_duration = var. wait_for_workspace
31+ }
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ variable "service_instance_name" {
1717 type = string
1818 description = " Optionally, the service instance name of an existing object before cluster creation"
1919}
20+
21+ variable "wait_for_workspace" {
22+ type = string
23+ description = " Time to wait after creating a Power VS workspace to allow PER to initialize"
24+ }
Original file line number Diff line number Diff line change @@ -170,4 +170,5 @@ module "iaas" {
170170 resource_group = var. powervs_resource_group
171171 powervs_zone = var. powervs_zone
172172 service_instance_name = var. powervs_service_instance_name
173+ wait_for_workspace = var. powervs_wait_for_workspace
173174}
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ variable "powervs_service_instance_name" {
4545 description = " Optionally, the service instance name of an existing object before cluster creation"
4646}
4747
48+ variable "powervs_wait_for_workspace" {
49+ type = string
50+ description = " The seconds wait for the Power VS Workspace after creation, default is 60s"
51+ default = " 60s"
52+ }
53+
4854# ###############################################################
4955# Configure storage
5056# ###############################################################
You can’t perform that action at this time.
0 commit comments