hw-cookbooks / lxc

Linux Containers via Chef
58 stars 49 forks source link

fixed order of install pkg, then set up /etc/default/lxc #39

Closed paulczar closed 11 years ago

paulczar commented 11 years ago

works around this error ... alternative would be to set DPkg::Options=”–force-confold" as an apt option, haven't looked up how to do that.

Setting up lxc (0.7.5-3ubuntu67) ...

Configuration file `/etc/default/lxc'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** lxc (Y/I/N/O/D/Z) [default=N] ? 
invoke-rc.d: policy-rc.d denied execution of start.
lxc-net start/running
jschneiderhan commented 11 years ago

+1 - I am also getting the error message while using the default recipe.

bflad commented 11 years ago

Fix LGTM.

chrisroberts commented 11 years ago

Hi guys. Thanks for the report! The ordering here is the desired ordering since we want to allow a custom network configuration prior to lxc-net setting everything up (which will cause everything to hang if there is a conflict). The option to dpkg is definitely the right approach so I will get the addition in and a release out shortly.

chrisroberts commented 11 years ago

Released in v1.1.2. Cheers!

jschneiderhan commented 11 years ago

@chrisroberts v1.1.2 is working for me ... thank you!