When a network interface is specified as dynamic, the auto variable is not properly set up for the if branch of the condition, hence the /etc/network/interfaces generated by the template is as follow:
# Auto config dropped off by chef!
# Always setup loopback
auto lo
iface lo inet loopback
iface eth0 inet dhcp
The variable should by set before the if conditional so it is set for every kind of interface (dynamic or static).
A will open a PR with the aforementioned change, I would like to know about merging the PR? I may need some help if tests are required for merging.
When a network interface is specified as dynamic, the auto variable is not properly set up for the if branch of the condition, hence the /etc/network/interfaces generated by the template is as follow:
The variable should by set before the if conditional so it is set for every kind of interface (dynamic or static).
A will open a PR with the aforementioned change, I would like to know about merging the PR? I may need some help if tests are required for merging.