Back to the topic of Augeas for this post, here are two quick solutions I am
execute “sysctl.conf file” do
command “augtool -s set /files/etc/sysctl.conf/vm.overcommit_memory 1”
This is looking like a really good way to modify files in-place!!! I hope.
Here is an example of the file edit utility:
ruby_block “edit etc ssh sshd_config” do
rc = Chef::Util::FileEdit.new("/etc/ssh/sshd_config")
notifies :restart, "service[ssh]"