David Lutterkort wrote:
> On Wed, 2009-06-03 at 12:56 -0700, Gajillion wrote:
>> All,
>> I've tried several lenses and several iterations and have never been
>> able to get augeas and puppet to work together.  My latest attempt:
>>
>>     augeas {"memlock":
>>         changes => [
>>             "ins domain after /files/etc/security/limits.conf/domain
>> [last()]",
>>             "set /files/etc/security/limits.conf/domain[last()]/ *",
> 
> I bet the problem is the trailing '/' - Augeas' XPath syntax doesn't
> allow that. The reason this works in augtool is that augtool will be
> helpful and clean up the path you entered and remove the trailing slash.
> 
> The Puppet Augeas type does not - but it also does not check the return
> value of Augeas.set; the next set in your changes creates an domain node
> with no value, which is what save ultimately chokes on.
> 
> Clearly, we need better error checking/reporting ...
> 

I will put in a ticket.

-- bk

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

Reply via email to