1

Perhaps a question of ignorance but...

I have long since documented the steps required to configure my servers (Apache, NGINX, Samba, Postfix, whatever).

Reproducing a server setup is simply a matter of carrying out the steps one by one. My feeling is that most (if not all) could be automated via scripting.

My sysadmin tells me this is not a practice of professionals (though he is far more Windows centric) and his preferred style is to configure and clone by using VM's or ISO's.

How common is it for nix pros to have a script for bringing servers up to speed quickly? Development environments varying significantly, installing xdebug or whatever tools.

I have multiple environments, a development server (installing my tools on Windows is such a PITA), a deployment/CI server, production servers, etc.

It would be nice to create a series of scripts which could get the ball rolling, modify required conf files, etc...all done programmatically making change in the future both clearly documented and re-producible.

What is your opinion on such a matter?

Other than a lot of work to get started I can't say I see much wrong with this approach...

Alex.Barylski
  • 191
  • 1
  • 2
  • 9

1 Answers1

0

It sounds like you are looking for a Configuration Management/Orchestration tools. I would strongly discourage you from writing your own, but tools like Puppet, Chef and Ansible are designed to solve this precise problem. These (and other similar tools) are extremely popular in enterprise environments, and are also capable of reporting on the state of the machines (important when you need to find which machines have vulnerable software installed that needs to be patched), or where you are dealing with large numbers of machines that may need to be created on demand.

Andy C
  • 311
  • 1
  • 3
  • I've heard of Puppet before...and I would rather not re-invent the wheel (who has that kind of time?). I was not aware of what Puppet was...or how it worked along side Vagrant but with this in mind will definitely take another look. Thanks :) – Alex.Barylski Mar 12 '15 at 14:09