5 ms·
"If you disable any direct shell access to the server and force all configuration changes to be applied by running the recipe from version control, you have an
by dredmorbius 14y ago
"If you disable any direct shell access to the server and force all configuration changes to be applied by running the recipe from version control, you have an excellent audit mechanism that ensures every change to the environment is logged."
Um. Yeah. You're also creating a situation where, should anything possibly go wrong (now, how could that happen), you cannot hop on the server, diagnose, and possibly do some quick-try fixes. I can see limiting shell to a small trusted subset of colleagues (sorry, devs), but not eliminating it altogether.
Automated management, "system-as-code", devops, and all that has its place. The problem with virtually all existing systems for automated configuration management (cfengine, puppet, chef, Oopsware), is that they are highly non-transitive, and effectively bin years or decades of administration experience. They're fine once you've worked out the kinks, but as anyone who's worked with these tools can tell you, the one thing they're best at is screwing up all of your systems simultaneously.
"Etch" (http://sourceforge.net/projects/etch/ http://sourceforge.net/projects/etch/) is one tool I've looked at briefly that appears to take a different tack, and is amenable to taking on-host changes and incorporating them into the configuration management system itself. One of the criticisms I've seen of it is that it's rather Linux and/or specifically Debian-centric, which may well be as Debian offers some very strong tools for managing, assessing, and maintaining system state (policy, APT, debconf). While dependencies can be painful when they keep you from doing what you want to do, as with most good safety systems, it's generally because you really don't want to go there (and if you do, there are means, within the framework provided by Debian, to get you there).
One way to avoid snowflake systems is to use tools that manage dependencies, stick within them to the greatest extent possible, and where that's not an option, to put your own modificiations within that same framework.
- heretohelp 14y agoI just use fabric. I just start writing code to provision/configure the machine for the role in question and don't stop until I have something that can reliably take a blank-slate server and have it rolling by the end of the function. Easiest way to do devops I've seen yet. I didn't care for chef/puppet/cfengine. Particularly since I can cherry-pick servers for testing pretty easily with fabric before I run the code against the rest of the machines.
- dredmorbius 14y agoURL? Not a particularly searchable term.
- vineet 14y agohttp://fabfile.org/ http://fabfile.org/ Seems to be down right now though.
- dredmorbius 14y agoAccording to the Internet Archive, it hasn't been online since roughly 2009.
- vineet 14y agoThey are up right now.
- dredmorbius 14y agoIndeed they are. Thanks.
- StavrosK 14y agoThey definitely have, I've been visiting it a lot lately, when I was writing my own deployment script. Also, you need this too: https://github.com/sebastien/cuisine/ https://github.com/sebastien/cuisine/
- heretohelp 14y agohttp://pypi.python.org/pypi/Fabric/0.9.0 http://pypi.python.org/pypi/Fabric/0.9.0 Edit: The primary weakness of my approach is that for convenience's sake, I rely heavily on apt-get. So hypothetically I'm tied to the debian family. (we use Ubuntu LTS of a couple different versions) Strictly speaking this disadvantage is unnecessary, you could do all from-source builds using fabric if you wanted. Didn't seem like a constructive use of my time though. Sample task in my fabfile: https://gist.github.com/3086836 https://gist.github.com/3086836 I'll let you guess from the function name what it does. The magic word of devops is "idempotence".