Le vendredi 02 octobre 2009 à 12:06 +0200, Aurelien Degremont a écrit : > Thomas Bellman a écrit : > > Aurelien Degremont wrote: > > > >> How do you deal with a file, like /etc/sysconfig/network which have > >> content composed from different aspects (could be network, nfs, nis, > >> ...). So managed by various modules but all > of them should add its > >> own stuff to the same file. > >> > >> What is your elegant way to deal with this? > > > > Edit the individual settings using e.g. Augeas. Preferably wrap it in > > a define, so you don't have to deal with the augeas type directly every > > time you want to change something in /etc/sysconfig. > > I put /etc/sysconfig/network as an example. AFAIK, unfortunately, Augeas only > handles > known files (existing lenses). If we trty to handle > /etc/our_local_config_file, it is not > so easy.
A bunch of templates + concatened_file would do the trick I suppose. Nico.
signature.asc
Description: Ceci est une partie de message numériquement signée