That didn't work either: debug: Augeas[memlock](provider=augeas): sending command 'ins' with params ["domain", "after", "/files/etc/security/limits.conf/files/etc/ security/limits.conf/domain[last()]"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/files/etc/security/ limits.conf/domain[last()]", "*"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/files/etc/security/ limits.conf/domain[last()]/type", "hard"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/files/etc/security/ limits.conf/domain[last()]/item", "memlock"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/files/etc/security/ limits.conf/domain[last()]/value", "unlimited"] err: //Node[buildtest]/wombat::setup/Augeas[memlock]/returns: change from need_to_run to 0 failed: Save failed with return code false
On Jun 4, 7:00 pm, David Lutterkort <lut...@redhat.com> 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 ... > > David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---