[augeas-devel] Approx.conf lens

Dominique Dumont dominique.dumont at hp.com
Fri Mar 5 08:24:30 UTC 2010


On Thursday 04 March 2010 15:13:57 Tim Stoop wrote:
> Again a very simple lens, but I thought someone might appreciate it.
> Almost the same as nagioscfg and sysctl, just a different seperator.
> Since you can choose arbitrary names, there's not a whole lot of type
> checking you can do.
> 

Hmm, I think your lens will fail to parse approx keywords that begin with '$'. 
keywords without '$' prefix are still accepted but are deprecated.

See this extract from approx changelog:

approx (2.9.0) unstable; urgency=low

  Configuration parameters in /etc/approx/approx.conf should now begin
  with '$' to distinguish them from repository names. The old style is
  still accepted with a warning message.

<shameless plug>
You can use config-edit-approx from Config::Model::Approx [1] to migrate from 
old style parameters to new style in one command:
 # config-edit-approx -ui none -save
See [2] for more details
</shameless plug>

Hope this helps

Dominique
[1] http://search.cpan.org/dist/Config-Model-Approx/
[2] http://wiki.debian.org/PackageConfigUpgrade#Approxexample
--
http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/
http://www.ohloh.net/accounts/ddumont




More information about the augeas-devel mailing list