hw-cookbooks / lxc

Linux Containers via Chef
58 stars 49 forks source link

Auto parameter not set when a dynamic interface is configured #53

Closed therobot closed 9 years ago

therobot commented 10 years ago

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.

therobot commented 9 years ago

I am closing this since it is already released.