Archive for June, 2007

Sanifying config files with m4 (Part II of IV)

June 26th, 2007

This post continues from Part I.
Breaking up is hard to do
The first thing to take on is the ordinary config file. Look at it and mentally chunk it up into logical bits — for example, configuration options that are determined by what subnet a host is on, or by what NIS domain it uses, […]

Sanifying config files with m4 (Part I of IV)

June 21st, 2007

The other day I was faced with continuing to work on an extraordinarily repetitive task which has bored me to tears on several occasions, resulting in its not having been done yet (despite my manager’s patient status requests every week): installing a standardized snmpd.conf file for all of our snmp-monitored clients on the network. […]

Best. Documentation. Ever.

June 19th, 2007

So, I got sick of editing some repetitive files over and over with the same stuff, and decided to convert it all to m4. Whereupon I stumbled across what I have officially decided is the most accurate documentation ever:
When writing macros for m4, most of the time they would not work as intended[.]
Finally! […]

Getting started with bcfg2

June 16th, 2007

Several months ago it became apparent that I was going to have to start looking into using a configuration management package for some systems at work, because otherwise things were going to get wildly out of hand pretty fast. I’m most familiar with cfengine, but I looked at puppet (chiefly because we have a […]