aboutsummaryrefslogtreecommitdiffstats
path: root/terraform-ci-infra
diff options
context:
space:
mode:
authorTomas Alexy <tomas.alexy@pantheon.tech>2021-03-05 11:15:55 +0100
committerPeter Mikus <pmikus@cisco.com>2021-03-08 10:42:00 +0000
commit2b90fd5bd7d38b5800864daa20939e5fe9e129c8 (patch)
tree77ab96c715a08575bf1ec1792f106173d44c7371 /terraform-ci-infra
parent9481aad815189d6251d36c11e3f901f9179dab40 (diff)
Infra: AWS/Azure fix OOM issues on smaller instances
Signed-off-by: Tomas Alexy <tomas.alexy@pantheon.tech> Change-Id: Ic799f5eeaf03f34386603421c1d9282167c25aa5
Diffstat (limited to 'terraform-ci-infra')
-rw-r--r--terraform-ci-infra/2n_aws_c5n/deploy/main.tf10
-rw-r--r--terraform-ci-infra/3n_aws_c5n/deploy/main.tf15
2 files changed, 25 insertions, 0 deletions
diff --git a/terraform-ci-infra/2n_aws_c5n/deploy/main.tf b/terraform-ci-infra/2n_aws_c5n/deploy/main.tf
index 8595f9f270..f97d974b38 100644
--- a/terraform-ci-infra/2n_aws_c5n/deploy/main.tf
+++ b/terraform-ci-infra/2n_aws_c5n/deploy/main.tf
@@ -319,6 +319,11 @@ resource "null_resource" "deploy_tg" {
}
}
}
+
+ provisioner "remote-exec" {
+ on_failure = continue
+ inline = ["sudo reboot"]
+ }
}
resource "null_resource" "deploy_dut1" {
@@ -352,6 +357,11 @@ resource "null_resource" "deploy_dut1" {
}
}
}
+
+ provisioner "remote-exec" {
+ on_failure = continue
+ inline = ["sudo reboot"]
+ }
}
resource "null_resource" "deploy_topology" {
diff --git a/terraform-ci-infra/3n_aws_c5n/deploy/main.tf b/terraform-ci-infra/3n_aws_c5n/deploy/main.tf
index 6559bbf70d..7c029c6c54 100644
--- a/terraform-ci-infra/3n_aws_c5n/deploy/main.tf
+++ b/terraform-ci-infra/3n_aws_c5n/deploy/main.tf
@@ -385,6 +385,11 @@ resource "null_resource" "deploy_tg" {
}
}
}
+
+ provisioner "remote-exec" {
+ on_failure = continue
+ inline = ["sudo reboot"]
+ }
}
resource "null_resource" "deploy_dut1" {
@@ -418,6 +423,11 @@ resource "null_resource" "deploy_dut1" {
}
}
}
+
+ provisioner "remote-exec" {
+ on_failure = continue
+ inline = ["sudo reboot"]
+ }
}
resource "null_resource" "deploy_dut2" {
@@ -451,6 +461,11 @@ resource "null_resource" "deploy_dut2" {
}
}
}
+
+ provisioner "remote-exec" {
+ on_failure = continue
+ inline = ["sudo reboot"]
+ }
}
resource "null_resource" "deploy_topology" {