Skip to content

Commit

Permalink
fix: resolve issue with cis
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Dec 12, 2023
1 parent cb6f917 commit 00a7d30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/4_pvs_support/pvs_support.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ EOF
}

resource "null_resource" "create_resolv_conf_for_intel_workers" {
count = var.ibm_cloud_cis ? 0 : 1

depends_on = [null_resource.limit_csi_arch]
connection {
type = "ssh"
user = var.rhel_username
host = var.bastion_public_ip
private_key = file(var.private_key_file)
private_key = sensitive(file(var.private_key_file))
agent = var.ssh_agent
timeout = "${var.connection_timeout}m"
}
Expand Down Expand Up @@ -172,12 +174,12 @@ EOF
}

resource "null_resource" "migrate_mcp" {
depends_on = [null_resource.limit_csi_arch]
depends_on = [null_resource.limit_csi_arch, null_resource.create_resolv_conf_for_intel_workers]
connection {
type = "ssh"
user = var.rhel_username
host = var.bastion_public_ip
private_key = file(var.private_key_file)
private_key = sensitive(file(var.private_key_file))
agent = var.ssh_agent
timeout = "${var.connection_timeout}m"
}
Expand Down

0 comments on commit 00a7d30

Please sign in to comment.