bradenwright / kitchen-lxd_cli

Test Kitchen driver for LXD
Other
10 stars 4 forks source link

fix for path to ifcfg-eth0 on centos, to add 'BOOTPROTO=none' flag (dhcp) #18

Closed sc0ttruss closed 7 years ago

sc0ttruss commented 7 years ago

when using centos7.2, the path to the ifcfg-eth0 file, was using the default ubuntu path "/etc/network/interfaces.d/eth0.cfg", whereas this sits in "/etc/sysconfig/network-scripts/ifcfg-eth0" on centos 7.2. This only affects the dhcp setting, though to be honest, I am not sure that this setting is actually being honoured ( still unsure how the ip address is being configured inside the container. ie the ip address is not configured inside this file ). Fundamentally, this fix stops an error message from displaying using kitchen on ubuntu with centos lxd containers. NB also changed setting from "manual" to "none", as this is how kitchen vagrant plugin does it.

bradenwright commented 7 years ago

FYI... I'll make sure to review/test this and get it merged in asap... I should have little time today, tomorrow, best guess I'll merge it tuesday if not earlier.

bradenwright commented 7 years ago

Sorry it took me so long, was a long week. I live in chicago so the cubs wining, let's just say I wasn't on my computer as much as normal weeks

bradenwright commented 7 years ago

I pushed a gem to rubygems as well.