> Fails: wombat::setup/Augeas[memlock]/returns: change from need_to_run
> to 0 failed: Save failed with return code fals
This is the same error I just said I wasn't able to reproduce in
another thread. What OS is this? Try installing Augeas itself (not
just the libs and ruby bindings) and see if the error goes away.
--
Rob McBroom
<http://www.skurfer.com/>
Don't try to tell me a thing is important to you if the whole of your
"support" entails forcing other to spend time and money on it.
Now.. the plugin. The first augeas plugin always ran augeas, which
caused the task to fire even if no change was made to the file. We
changed this by adding a no-op mode to augeas, and having the plugin do
a "test run" of the changes to determine if it needs to run.
So.. you are seeing first he test run, and then the actual run.
-- bk
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
I will put in a ticket.
-- bk
And I was so convinced it would ;)
> debug: Augeas[memlock](provider=augeas): sending command 'ins' with
> params ["domain", "after", "/files/etc/security/limits.conf/files/etc/
> security/limits.conf/domain[last()]"]
Do you have both a context set and use an absolute path in your changes
now ? The prefix /files/etc/security/limits.conf is duplicated in the
paths - if that still doesn't fix it, can you send the whole limits.conf
file and the augeas resource you use in your manifest ?
David
Great... glad to hear it works!
-- bk