Skip to content

Commit 51f9c57

Browse files
fix: add sleep between e980 and s922 vm to fix satellite error in NON PER DC(#538)
1 parent f9577c0 commit 51f9c57

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2023-11-02T15:28:02Z",
6+
"generated_at": "2023-11-09T07:38:50Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -92,7 +92,7 @@
9292
"hashed_secret": "3bd02b996f65f3548c1a0b5d93b00bfa7c88341a",
9393
"is_secret": false,
9494
"is_verified": false,
95-
"line_number": 56,
95+
"line_number": 57,
9696
"type": "Secret Keyword",
9797
"verified_result": null
9898
}

modules/pi-sap-system-type1/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The Power Virtual Server for SAP module automates the following tasks:
2525
|------|---------|
2626
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
2727
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.49.0 |
28-
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2.1 |
28+
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1 |
2929

3030
### Modules
3131

@@ -45,6 +45,7 @@ The Power Virtual Server for SAP module automates the following tasks:
4545
| Name | Type |
4646
|------|------|
4747
| [ibm_pi_network.sap_network](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/pi_network) | resource |
48+
| [time_sleep.wait_1_min](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
4849

4950
### Inputs
5051

modules/pi-sap-system-type1/main.tf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,15 @@ locals {
143143
pi_netweaver_instance_storage_config = var.pi_sharefs_instance.enable ? var.pi_netweaver_instance.storage_config : concat(var.pi_netweaver_instance.storage_config, local.pi_netweaver_instance_sapmnt_storage)
144144
}
145145

146+
resource "time_sleep" "wait_1_min" {
147+
create_duration = "60s"
148+
}
149+
146150
module "pi_netweaver_instance" {
147-
source = "terraform-ibm-modules/powervs-instance/ibm"
148-
version = "1.0.2"
149-
count = var.pi_netweaver_instance.instance_count
151+
source = "terraform-ibm-modules/powervs-instance/ibm"
152+
version = "1.0.2"
153+
count = var.pi_netweaver_instance.instance_count
154+
depends_on = [time_sleep.wait_1_min]
150155

151156
pi_workspace_guid = var.pi_workspace_guid
152157
pi_instance_name = "${local.pi_netweaver_instance_name}-${count.index + 1}"

modules/pi-sap-system-type1/version.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ terraform {
1010
source = "IBM-Cloud/ibm"
1111
version = ">= 1.49.0"
1212
}
13-
# tflint-ignore: terraform_unused_required_providers
14-
null = {
15-
source = "hashicorp/null"
16-
version = ">= 3.2.1"
13+
time = {
14+
source = "hashicorp/time"
15+
version = ">= 0.9.1"
1716
}
1817

1918
}

0 commit comments

Comments
 (0)