Puppet tips

I don’t like puppet, I grew up with Chef, though Puppet is as good as Chef. When programming a new puppet manifest I always start with logical structure, I test this structure using notify commands. Puppet has a DSL, it’s not ruby, it’s not a “normal” language. For example there are no variables. There are constants, they look like variables though they are not mutable. Puppet code is build out of Resource statements. There are…

Continue reading

Tests…tests…test

“I tested it, and it seems to be ok…” if I had a dollar for each time I’ve heard this line… though I don’t. tests are not just a nice it’s mandatory. tests need to be well documented and reviewed. without full set of tests your feature, script or even entire application is flawed. a truly full set of test will ensure you have no holes, no, full coverage of desired content and no bugs.

Continue reading

why scripts are not enough

“back in the good old days, we used to fix everything by hand…”This line is true not to your father or uncle but true to hi-tech veterans as well. the “good” old days where the sysadmin knew all commands by heart and knew how to do magic and fix every system problem with a set of bash commands. as time progressed the set of commands were gathered into small bash scripts named “run.sh” or “fixer.bash”.…

Continue reading