[augeas-devel] Using Shellvars for Gentoo's conf.d/net config

Doug Warner doug at warner.fm
Tue Feb 2 20:54:43 UTC 2010


I'm trying to manage Gentoo's /etc/conf.d/net config files with Augeas using
the Shellvars lens.  I created this simple lens to add support:

gentoonet.aug:
module GentooNet=
  autoload xfm

let xfm = transform Shellvars.lns (incl "/etc/conf.d/net*")


I'm getting this error on a simple net config file:
augtool> ls /augeas/files/etc/conf.d/net/error
pos = 0
line = 1
char = 0
lens = /usr/share/augeas/lenses/dist/shellvars.aug:45.12-.53
message = Iterated lens matched less than it should


/etc/conf.d/net contains:
config_eth0=( "null" )
config_eth1=( "10.128.0.48/24" )
routes_eth1=( "default via 10.128.0.254" )


Any ideas on what I can do to modify Shellvars to support this?

-Doug

(please CC me on replies)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100202/0224ad1e/attachment.sig>


More information about the augeas-devel mailing list