Re:Babushka – Test-Driven Sysadmin
by mapleoin on Wednesday April 20, 2016 @05:01AM
(#11533108)
This is presented as revolutionary somehow, but it's just a stripped-down (early version?) of what the other configuration management tools do: e.g. Chef, puppet, ansible.
[ Parent
| on HN ]
Re:Babushka – Test-Driven Sysadmin
by CraigJPerry on Wednesday April 20, 2016 @06:27AM
(#11533374)
Yeah i agree. Although I still haven't found a test framework I like for this so any pointers appreciated!
I tried it all ansible based: https://github.com/CraigJPerry/ansible-users/tree/test-cases...
I tried it using Python's unittest2 module: https://github.com/CraigJPerry/home-network/blob/v0.1.5/test...
I like the idea that ansible playbooks should be self testing.
I'm working from a memory of a podcast, so pull out those pinches of salt: Chef offers a testing suite - it basically offers a running mode which does an audit of what current conforms to the recipes you've passed it, and outputs a list of actions it would take to remedy this.
Combined with VMs, this lets you do some basic automated testing to ensure that your script is doing what you intend it to do.
I could swear that they also some kind of automated validation against an "inventory", which would make it possible to do automated tests against a known, unchanging target, but at this point I'm probably mis-remembering. They may have just advocated using VMs, images, and audits as validation.