I hope this is an appropriate place for this question; if not, any redirection to a more appropriate place is appreciated.
So: I'm trying to set up puppet + augeas on an opensolaris system. There are certain files I have that are under RCS version control--this is not all my doing, so some of these things I cannot change. This creates files under /etc/ that are like "filename,v".
I'm using puppet 2.7.22 and augeas 1.0.0.
Well, augtool, and apparently augeas invoked via puppet throw up on this. Augtool reports
Failed to initialize Augeas
error: Invalid path expression
error: garbage at end of path expression
/augeas/files/etc/default/nfs|=|,v
I just want augeas to ignore these files...
I think the answer is to modify the /usr/local/share/augeas/lenses/dist/*.aug files that refer to things that are causing this grief and add excl clauses to explicitly exclude anything *,v.
For example in shellvars.aug we have
let filter_default = incl "/etc/default/*"
. excl "/etc/default/grub_installdevice*"
. excl "/etc/default/whoopsie"
I've added
. excl "/etc/default/*,v"
This appears to work. But I'm not sure this is the "right" solution -- should I perhaps be making a copy of this to somewhere else and override the dist version? Is there a more global way I could say "ignore all files that have ,v after them" ?
Thanks
Pete