From b620c15d2e77f28fc1c0c430a374d15c7bf99bb0 Mon Sep 17 00:00:00 2001 From: sukster <67369320+sukster@users.noreply.github.com> Date: Thu, 6 Aug 2020 17:52:10 +0200 Subject: [PATCH] Ifconfig up fix for logger The syntax "sudo ifconfig up eth1" was throwing an error in the current version of Ubuntu. The "up" option needs to come after the interface name for it to work. --- ESXi/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESXi/main.tf b/ESXi/main.tf index 1b0d673..442c586 100644 --- a/ESXi/main.tf +++ b/ESXi/main.tf @@ -30,8 +30,8 @@ resource "esxi_guest" "logger" { provisioner "remote-exec" { inline = [ - "sudo ifconfig up eth1 || echo 'eth1 up'", - "sudo ifconfig up eth2 || echo 'eth2 up'", + "sudo ifconfig eth1 up || echo 'eth1 up'", + "sudo ifconfig eth2 up || echo 'eth2 up'", "sudo route add default gw 192.168.76.1 || echo 'route exists'" ]