diff --git a/files/network_config.cfg.tftpl b/files/network_config.cfg.tftpl index 930e15d..da73517 100644 --- a/files/network_config.cfg.tftpl +++ b/files/network_config.cfg.tftpl @@ -1,7 +1,7 @@ version: 2 ethernets: ens3: -%{ if fixed_address } +%{ if fixed_address != "" } dhcp4: false addresses: - "${fixed_address}" diff --git a/variables.tf b/variables.tf index d728190..3a582a9 100644 --- a/variables.tf +++ b/variables.tf @@ -62,5 +62,5 @@ variable "data_disk" { variable "fixed_address" { type = string - default = null + default = "" }