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.
This commit is contained in:
sukster
2020-08-06 17:52:10 +02:00
committed by GitHub
parent ba5b14658c
commit b620c15d2e

View File

@@ -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'"
]