5 ms·
Ask HN: How do you automate your server provisioning?
My goal is to fully automate spinning up servers/environments, with, for example, a MySQL installation with users/data. I would like to automate this provisioning via a script or some sort.
I know docker can do this, but I need to be able to run this on bare metal. Is saltstack the way to go, or Chef, or Puppet?
I would prefer not to run a daemon on the target machine.
- mtmail 8y agoYou already mention several https://en.wikipedia.org/wiki/Comparison_of_open-source_configuration_management_software https://en.wikipedia.org/wiki/Comparison_of_open-source_conf... Have a look at ansible, it works agentless (no daemon on target machine).
- karmakaze 8y agoI've used ansible for bootstrapping new nodes and Chef recipes to converge the node to desired state. This pattern worked well enough for both bare metal and EC2 instances. We just ran separate Chef servers in each.
- smt88 8y agoRDS + Elastic Beanstalk, because I am extremely lazy and like GUIs
- z3t4 8y agoI use a Node.JS script. JavaScrip/Node is really good at dealing with text IO, and async operations. I for example use the SSH module to SSH into a server to run apt and edit configuration files.
- ryanmccullagh 8y agoI started writing some scripts that will execute scp to copy over some shell scripts and then a script to ssh into it and execute one command. These commands run apt