On Monday, December 10, 2012 1:51:46 PM UTC-5, Bret Wortman wrote: > On Monday, December 10, 2012 8:34:17 AM UTC-5, Dominic Cleal wrote: > >> On 07/12/12 11:56, Bret Wortman wrote: >> > Even in interactive mode, I get nothing out of augtool! What should I >> > look at to see why this is failing? Syslog doesn't show anything >> > illustrative, nor did puppet agent -t --debug. >> >> The lack of errors from the augeas resource type should be much improved >> now if you're able to use Puppet 3. >> > > I am using Puppet 3 -- 3.0.1-1, to be precise. In response to Raphael's > suggestion, I'm able to find some errors and can work through those. >
I spoke too soon. The specific file I'm trying to work with is /etc/cron.allow. When I try to parse it: augtool> ls /files/etc/cron.allow augtool> print /augeas//error /augesa/files/etc/hosts/error = "parse_failed" /augeas/files/etc/hosts/error/pos = "18473" /augeas/files/etc/hosts/error/line = "273" /augeas/files/etc/hosts/error/char = "0" /augeas/files/etc/hsots/error/lens = "/usr/share/augeas/lenses/dist/hosts.aug:23.12-.42:" /augeas/files/etc/hsots/error/message = "Iterated lens matched less than it should" It doesn't look like the error is getting updated, or am I misunderstanding something? > Where should these be printing to from Puppet? > > >> I've added debug if there are parsing errors (which will print output >> equivalent to Rapha�l's augtool suggestion) and warnings if you're >> using >> context/incl parameters and it finds an error on a file you're trying to >> modify. >> >> -- >> Dominic Cleal >> Red Hat Engineering >> > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/lFktVrVF4_8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
