Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
fix merge conflicts from empovit prs with equinix provider conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
displague committed May 9, 2023
1 parent d0350ab commit 245e04f
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 87 deletions.
170 changes: 88 additions & 82 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ resource "equinix_metal_device" "esxi_hosts" {
}

resource "null_resource" "reboot_pre_upgrade" {

depends_on = [metal_device.esxi_hosts]
depends_on = [equinix_metal_device.esxi_hosts]
count = var.update_esxi ? 1 : 0

provisioner "local-exec" {
Expand All @@ -153,12 +152,12 @@ resource "null_resource" "reboot_pre_upgrade" {
resource "null_resource" "upgrade_nodes" {

depends_on = [null_resource.reboot_pre_upgrade]
count = var.update_esxi ? length(metal_device.esxi_hosts) : 0
count = var.update_esxi ? length(equinix_metal_device.esxi_hosts) : 0

connection {
user = local.ssh_user
private_key = chomp(tls_private_key.ssh_key_pair.private_key_pem)
host = element(metal_device.esxi_hosts.*.access_public_ipv4, count.index)
host = element(equinix_metal_device.esxi_hosts.*.access_public_ipv4, count.index)
}

provisioner "file" {
Expand Down Expand Up @@ -327,7 +326,7 @@ resource "null_resource" "install_vpn_server" {
}

provisioner "file" {
content = templatfile("${path.module}/templates/l2tp_vpn.sh", {
content = templatefile("${path.module}/templates/l2tp_vpn.sh", {
ipsec_psk = random_password.ipsec_psk.result
vpn_user = var.vpn_user
vpn_pass = random_password.vpn_pass.result
Expand Down

0 comments on commit 245e04f

Please sign in to comment.