[kwlug-disc] Puppet partial config templates
paul_nijjar at yahoo.ca
Sun Aug 22 03:03:45 EDT 2010
So I still don't understand Puppet -- I am very much in the reading
stages. I am sure this is a newbie complaint, but here goes: the
configuration files (in /etc) for many packages are pretty verbose.
They are well-commented and often specify options that I intentionally
don't touch. Instead, I change the one or two lines I care about and
move on with my life.
As far as I can tell, Puppet .erb templates want me to reproduce
config files as templates, rather than edit the files directly.
Bad old cfengine2 had directives like "AppendIfNoSuchLine" that would allow
you to concisely list the changes you want to make to config files.
I do not see how you do that in shiny beautiful Puppet.
This matters to me because for the most part I trust the Debian
package maintainer's choices over my own judgement when it comes to
config files. If a Debian maintainer sets an option, I usually want to
agree with that option. I also appreciate the good comments in many
config files, and I want to keep them. But Puppet wants me to take
control of the config files entirely, which means that when there are
important new versions of the config files released, I have to
*manually* inspect files for differences. I don't like that -- I want
the Debian config file tools to handle as much of this as possible.
(Yes, I know that on upgrades sysadmins have to look at config files
manually sometimes, but I think the tools for handling this are
getting better, and Puppet undoes this.)
I also want to highlight the important options that are being changed
in each file, and including only the changes in my Puppet
configuration seems like a good way to do this.
What am I misunderstanding?
More information about the kwlug-disc