Hi Damon, either send a patch to this list, or open a pull request against the upstream repo at https://github.com/hercules-team/augeas/pulls
David On Tue, Apr 9, 2013 at 9:57 AM, Damon Conway < [email protected]> wrote: > Ok, so I know have a working lens for awstats config files. I'm > currently working on a puppet config to automatically generate > configurations as part of my site class. Once I'm happy with it in my > configuration, I'd like to submit it to be included as a stock lens. I'm > currently using 0.9.0 on my systems (latest in EPEL). How do I submit a > pull to accomplish this? > > Thanks, > Damon (kabau in #augeas) > > > > On 04/08/2013 04:34 PM, Damon Conway wrote: > > Yes, I found that I had a keyword spelled incorrectly in my list. Perhaps > it is time to learn how to dynamically build that. > > On 04/08/2013 04:21 PM, Raphaël Pinson wrote: > > So line 317 of /etc/awstats/awstats.localhost.localdomain.conf fails to > parse with the lens (in case it's not clear). Might be worth another unit > test. > > > On Mon, Apr 8, 2013 at 11:20 PM, Damon Conway < > [email protected]> wrote: > >> Aha! It was showing several permissions errors, and I ran with sudo. >> Now I'm seeing this: >> >> augtool> print /augeas//error >> /augeas/files/etc/awstats/awstats.model.conf/error = "parse_failed" >> /augeas/files/etc/awstats/awstats.model.conf/error/pos = "15114" >> /augeas/files/etc/awstats/awstats.model.conf/error/line = "317" >> /augeas/files/etc/awstats/awstats.model.conf/error/char = "0" >> /augeas/files/etc/awstats/awstats.model.conf/error/lens = >> "./awstats.aug:224.10-.36:" >> /augeas/files/etc/awstats/awstats.model.conf/error/message = "Iterated >> lens matched less than it should" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error = >> "parse_failed" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error/pos = >> "15114" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error/line = >> "317" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error/char = >> "0" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error/lens = >> "./awstats.aug:224.10-.36:" >> /augeas/files/etc/awstats/awstats.localhost.localdomain.conf/error/message >> = "Iterated lens matched less than it should" >> >> Thanks for the help! I'll follow this error message. >> >> Damon >> >> >> On 04/08/2013 03:33 PM, Raphaël Pinson wrote: >> >> Hi Damon, >> >> >> What does `print /augeas//error` say in augtool? >> >> >> Cheers >> >> Raphaël >> >> >> On Mon, Apr 8, 2013 at 9:20 PM, Damon Conway < >> [email protected]> wrote: >> >>> Hi, >>> I am writing a lens for awstats configuration files, and I've got it >>> passing tests. However, augtool doesn't show /etc/awstats as being >>> available. >>> >>> Mon Apr 08 14:12 ~/git/github/augeas >>> damon > augparse -I. tests/test_awstats.aug >>> Mon Apr 08 14:12 ~/git/github/augeas >>> damon > augparse -I. awstats.aug >>> Mon Apr 08 14:12 ~/git/github/augeas >>> damon > augtool -I. -n >>> augtool> print /files/etc/a >>> aliases/ apt/ >>> augtool> quit >>> >>> My code is here: https://github.com/damonconway/augeas.git >>> >>> Here is the relevant piece: >>> >>> (* View: entry *) >>> let entry = ( sp_sep /Include/ | simple_entry (simple_list) ) >>> >>> (* Variable: filter *) >>> let filter = incl "/etc/awstats/*" >>> . Util.stdexcl >>> >>> (* View: lns >>> The awstats lens *) >>> let lns = (empty | comment | entry)* >>> >>> let xfm = transform lns filter >>> >>> >>> >>> TIA, >>> Damon >>> >>> _______________________________________________ >>> augeas-devel mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/augeas-devel >>> >> >> >> >> -- >> Raphaël Pinson >> Administrateur Systèmes & Réseaux >> Camptocamp France >> Savoie Technolac >> BP 352 >> 48, avenue du Lac du Bourget >> 73372 Le Bourget du Lac, Cedex >> www.camptocamp.com >> >> >> > > > -- > Raphaël Pinson > Administrateur Systèmes & Réseaux > Camptocamp France > Savoie Technolac > BP 352 > 48, avenue du Lac du Bourget > 73372 Le Bourget du Lac, Cedex > www.camptocamp.com > > > > > _______________________________________________ > augeas-devel mailing > [email protected]https://www.redhat.com/mailman/listinfo/augeas-devel > > > > _______________________________________________ > augeas-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/augeas-devel >
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
