Augeas to add Apache directive TraceEnable

This is a small exercise on Augeas just to add a new directive. I’d like to add TraceEnable On to the configuration.

rm /files/etc/httpd/conf/httpd.conf/*[self::directive='TraceEnable']
ins directive before /files/etc/httpd/conf/httpd.conf/*[self::directive='KeepAlive']
set /files/etc/httpd/conf/httpd.conf/directive[.=""] "TraceEnable"
set /files/etc/httpd/conf/httpd.conf/directive[.="TraceEnable"]/arg "On"
save
quit