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:
@@ -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'"
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user