maintainability of configuration management code
TRANSCRIPT
![Page 1: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/1.jpg)
/
Maintainability of Config Management Code
Why is Everything So Awful, and What Can We Do About it?
Clinton WolfeDevOps Practice Lead@clintoncwolfe
![Page 2: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/2.jpg)
Part 1:
A Bit About Me
and My History
![Page 3: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/3.jpg)
id clintoncwolfe
• Lead DevOps Consultant at OmniTI Computer
Consulting
• Config Management (CM) specialist in Chef
and Ansible
• Software Engineering wonk
• Perl web developer in a former life
![Page 4: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/4.jpg)
Perl, huh?
• mod_perl developer 1996-
2011
• Projects start green, turn
brown, hard to maintain
• I became a proponent of
maintainability
![Page 5: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/5.jpg)
Part 2: Maintain-a-what-ability?
![Page 6: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/6.jpg)
The Push for Maintainability
TMTOWTDI
![Page 7: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/7.jpg)
The Push for Maintainability
"Some ways are Better than Others"
![Page 8: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/8.jpg)
The Push for Maintainability
"STOP DOING THAT. Use this instead"
![Page 9: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/9.jpg)
Maintainawhat?
The ease with which a system
can be interacted with, over time,
in order to:
• diagnose problems
![Page 10: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/10.jpg)
Maintainawhat?
The ease with which a system
can be interacted with, over time,
in order to:
• diagnose problems
• make repairs
![Page 11: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/11.jpg)
Maintainawhat?
The ease with which a system
can be interacted with, over time,
in order to:
• diagnose problems
• make repairs
• cope with changes in
requirements
![Page 12: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/12.jpg)
Maintainawhat?
The ease with which a system
can be interacted with, over time,
in order to:
• diagnose problems
• make repairs
• cope with changes in
requirements
• maximize useful life
![Page 13: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/13.jpg)
That sounds straightforward!
![Page 14: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/14.jpg)
Part 3: Some Factors Affecting
Maintainability in Application Software
![Page 15: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/15.jpg)
Arbitrary vs Necessary Complexity
Arbitrary Necessary
![Page 16: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/16.jpg)
Functionality vs Simplicity
![Page 17: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/17.jpg)
Entropy / Bit Rot
![Page 18: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/18.jpg)
Write vs Read
![Page 19: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/19.jpg)
Turnover and Skill Variance
![Page 20: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/20.jpg)
Yadda Yadda Yadda…
• lots of other things impact Application maintainability
• performance optimization
• rapidly changing feature requests
• languages, libraries, architectures go out of style
• But I won't get into that stuff
• It's hard
• No good answers
• Not as applicable to CM
![Page 21: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/21.jpg)
Part 4:
So Now Let's Do That to the Servers
![Page 22: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/22.jpg)
It's Easy!
"You don't have to know Ruby to use
Chef!"
![Page 23: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/23.jpg)
It's Easy!
"You don't have to know Ruby to use
Chef!"LIES
![Page 24: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/24.jpg)
Consequences, Schmonsequences
rm –rf –no-preserve-root {foo}/{bar}
![Page 25: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/25.jpg)
Ops Background != Dev Background
![Page 26: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/26.jpg)
Test Fixtures
![Page 27: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/27.jpg)
CM isn't good for everything
![Page 28: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/28.jpg)
Part 5: Free Advice
![Page 29: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/29.jpg)
Comment : Why, not What
![Page 30: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/30.jpg)
Pre-Flight
![Page 31: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/31.jpg)
KISS on Variable Storage
![Page 32: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/32.jpg)
Use a Linter
![Page 33: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/33.jpg)
Write Tests. Have Tests.
![Page 34: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/34.jpg)
Use Ephemeral Test Machines
![Page 35: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/35.jpg)
Use a Development Kit
![Page 36: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/36.jpg)
Use a Code Generator
![Page 37: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/37.jpg)
Use Code Reviews to Level-Set
![Page 38: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/38.jpg)
Burn It All Down
![Page 39: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/39.jpg)
Really, Really Burn It All Down
![Page 40: Maintainability of Configuration Management Code](https://reader037.vdocument.in/reader037/viewer/2022102811/58ed3f891a28ab420b8b459d/html5/thumbnails/40.jpg)
Thanks!
@clintoncwolfe
ansibledk.com
omniti.com
Let's follow up in OpenSpaces!