linux.com has a very nice article on Augeas. It’s a very nice overview and introduction.
As embarrassed as I am by the bug the author ran into (blank lines in /etc/hosts threw Augeas’ parser off), I am glad to say that it’s fixed in the most recent version 0.2.0. The bug and its fix underscores a bigger point though: by basing your config-mangling script on Augeas, rather than parsing files yourself, you will benefit from others finding and fixing bugs in Augeas’ parsing logic.
Some of the comments on the article are a little confused about Augeas’ purpose: it’s not meant for the situations where you’d be perfectly happy to use vi
, it’s main purpose is to ease scripting configuration changes.
Watzmann.Blog by David Lutterkort is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Generated with Jekyll