Hiya, There are a few camps of thought for this - ex-users of cfengine often look for such behavior. We have a lightweight file editing Mixin in production, and I have been evaluating Augeas on supported platforms for similar tasks. On 31/07/2009, at 11:42 AM, Thomas Hartman wrote:
You could possibly try the parseconfig Gem, and do so in-template-parse-and-re-render magic, but down this path surely lies madness. Most times this can be solved by a 'smart' template for my.cnf which reads in snippets from another directory, or programatically builds up the entire configuration file. This is the other main camp of thought - everything you are managing on your system should be managed (entire files) instead of a line in a file, which has the potential to conflict or be broken by earlier configuration (in that same file)
-- AJ Christensen, Software Engineer Opscode, Inc. E: aj@opscode.com |
Archive powered by MHonArc 2.6.16.