I think that this is mostly because of lens that are written this way.
We shouldn't blame them that this is "poorly" written in my opinion.
It is just more restrictive. Lens that I have written accept a
regular expression as an identifier instead of listing them.

Best, Nikola

On Fri, Mar 22, 2013 at 03:02:51PM +1100, Gonzalo Servat wrote:
> Hi All,
> 
> I just ran into a frustrating Augeas problem, which I thought I'd share
> with you all.
> 
> We run a cron every morning to fetch the latest RPMs (for the packages
> we're interested in) from various places such as rpmforge, EPEL, etc.
> 
> This morning I tried to build a VM and it failed. What happened was that
> last night, a new version of nagios-nrpe was downloaded so the VM that was
> built had this latest version. The RPM includes nrpe.cfg which had a new
> option added to it:
> 
> allow_bash_command_substitution=0
> 
> In the manifest, I have an augeas block to modify the allowed_hosts line in
> the nrpe.cfg file. Puppet was failing giving a "Save failed" error message,
> so I went in via augtool to see what's going on.
> 
> I noticed that it could not parse nrpe.cfg (i.e. ls /files/etc/nagios
> returned nothing). I had the previous config file saved for NRPE somewhere,
> so I diff'ed them and noticed the only new option is the option I mentioned
> above. After removing this new option, augtool could parse the file again
> and Puppet was happy.
> 
> After having a quick read of the nrpe.lns file inside augeas-libs, I
> noticed it actually lists each of the options that it will recognise from
> the config file, and evidently fails if it finds new options that it
> doesn't recognise.
> 
> Anyway, it hit me that there is quite a big dependency between config files
> and augeas lenses. A change in one config file can affect Augeas which
> affects Puppet runs. Or is this just a poorly written lens?
> 
> - Gonzalo
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to