[lxc-devel] Including files in LXC config

Andre Nathan andre at digirati.com.br
Tue Dec 6 15:10:53 UTC 2011


Hello

Attached is a patch that allows one to include other configuration files
from the main container config. The main motivation is to make the
automation of container configuration changes easier. Shell globs are
allowed, so you can do

lxc.include = /var/lib/lxc/mycontainer/conf.d/*.conf

I used the config value "lxc.include" to avoid having to change the
parse_line function, but since this is not really an LXC setting, maybe
something different would be desired (maybe "#include"?)

Any comments are appreciated.

Thanks in advance,
Andre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxc-config-include.patch
Type: text/x-patch
Size: 2040 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20111206/2cbf21bb/attachment.bin>


More information about the lxc-devel mailing list