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()]/ *", "set /files/etc/security/limits.conf/domain[last()]/type hard", "set /files/etc/security/limits.conf/domain[last()]/item memlock", "set /files/etc/security/limits.conf/domain[last()]/value unlimited", ] } Fails: wombat::setup/Augeas[memlock]/returns: change from need_to_run to 0 failed: Save failed with return code false However, stepping through those exact steps cut and paste into augtool works: augtool> ins domain after /files/etc/security/limits.conf/domain[last ()] augtool> set /files/etc/security/limits.conf/domain[last()]/ * augtool> set /files/etc/security/limits.conf/domain[last()]/type hard augtool> set /files/etc/security/limits.conf/domain[last()]/item memlock augtool> set /files/etc/security/limits.conf/domain[last()]/value unlimited augtool> save Saved 1 file(s) augtool> # tail -1 /etc/security/limits.conf * hard memlock unlimited I can't see anything even remotely obviously wrong in this. Any ideas? I've tried several iterations using various contexts and get the same thing every time. Full failure code from puppet debug: Augeas[memlock](provider=augeas): Opening augeas with root /, lens path , flags 0 debug: Augeas[memlock](provider=augeas): Augeas version 0.5.0 is installed debug: Augeas[memlock](provider=augeas): sending command 'ins' with params ["domain", "after", "/files/etc/security/limits.conf/domain[last ()]"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/domain[last()]/", "*"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/domain[last()]/type", "hard"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/domain[last()]/item", "memlock"] debug: Augeas[memlock](provider=augeas): sending command 'set' with params ["/files/etc/security/limits.conf/domain[last()]/value", "unlimited"] err: //Node[...]/wombat::setup/Augeas[memlock]/returns: change from need_to_run to 0 failed: Save failed with return code false --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---