Closed leifmadsen closed 6 years ago
I do also like Tomo's idea to skip this block entirely when necessary, kind of a good idea.
Tomo had noted:
thanks. I also test it tomorrow. Now I'm temporally fixed as follwing:
{% if system_network is defined %}
if [ $# -eq 4 ]; then
cat >> $META_DATA << _EOF_
network-interfaces: |
auto eth0
iface eth0 inet static
address $4
network {{ system_network }}
netmask {{ system_netmask }}
broadcast {{ system_broadcast }}
gateway {{ system_gateway }}
dns-nameservers {{ system_nameservers }}
dns-search {{ system_dns_search }}
_EOF_
fi
{% endif %}
Close it due to #23 fixed this issue, #20.
When you aren't using a static configuration, various variables are not defined by default. This change adds null defaults for variables that won't be used in a DHCP network setup.
Closes #20