test(e2e): Update wait_for_ssh timeout to 900s (#6436)
* test(e2e): Update wait_for_ssh timeout to 900s * CR: enos fmt
This commit is contained in:
1 parent
ca58ac0e20
commit
2ca3d16a84
4 files changed
+5
-7
No files matched your search
@@ -482,7 +482,7 @@ data "aws_instance" "instance_password" {
|
||||
resource "enos_local_exec" "wait_for_ssh" {
|
||||
depends_on = [time_sleep.wait_for_reboot]
|
||||
count = var.server_version != "2016" ? 1 : 0
|
||||
inline = ["timeout 600s bash -c 'until ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.domain_controller.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
inline = ["timeout 900s bash -c 'until ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.domain_controller.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
}
|
||||
|
||||
locals {
|
||||
|
||||
@@ -290,7 +290,7 @@ data "aws_instance" "instance_password" {
|
||||
resource "enos_local_exec" "wait_for_ssh" {
|
||||
count = var.server_version != "2016" ? 1 : 0
|
||||
depends_on = [time_sleep.wait_5_minutes]
|
||||
inline = ["timeout 600s bash -c 'until ssh -i ${local.private_key} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.member_server.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
inline = ["timeout 900s bash -c 'until ssh -i ${local.private_key} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.member_server.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
}
|
||||
|
||||
# Retrieve the domain hostname of the member server, which will be used in
|
||||
|
||||
@@ -287,10 +287,8 @@ locals {
|
||||
|
||||
|
||||
resource "enos_local_exec" "wait_for_ssh" {
|
||||
depends_on = [
|
||||
aws_instance.worker,
|
||||
]
|
||||
inline = ["timeout 600s bash -c 'until ssh -i ${local.private_key} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.worker.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
depends_on = [aws_instance.worker]
|
||||
inline = ["timeout 900s bash -c 'until ssh -i ${local.private_key} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.worker.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
}
|
||||
|
||||
resource "enos_local_exec" "make_dir" {
|
||||
|
||||
@@ -310,7 +310,7 @@ resource "local_sensitive_file" "private_key" {
|
||||
# can just SSH using the private key
|
||||
resource "enos_local_exec" "wait_for_ssh" {
|
||||
depends_on = [aws_instance.client]
|
||||
inline = ["timeout 600s bash -c 'until ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.client.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
inline = ["timeout 900s bash -c 'until ssh -i ${abspath(local_sensitive_file.private_key.filename)} -o BatchMode=Yes -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5 Administrator@${aws_instance.client.public_ip} \"echo ready\"; do sleep 10; done'"]
|
||||
}
|
||||
|
||||
resource "enos_local_exec" "get_go_version" {
|
||||
|
||||
Reference in new issue
Block a user