Nicolas Szalay a écrit : > 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.
Indeed, but I was seeking if there was something else than a "trick"? -- Aurelien Degremont CEA --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---