A
A
Aleksey Ratnikov2020-07-04 00:00:52
linux
Aleksey Ratnikov, 2020-07-04 00:00:52

Optimal automatic server deployment?

Periodically, you have to deploy the same type of hosting server to run php applications (and wordpress in particular). I wrote a script for bash for myself, which automatically installs all the necessary packages and edits configs. But it turned out to be cumbersome, it is not very convenient to maintain it, and sometimes you still have to finish some things with your hands.
The question is: what is the best tool or service to solve such a problem? Preferably free.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dmitry, 2020-07-04
@q2digger

Terraform for deployment, Ansible for configuration and maintenance. Terraform playbooks and scripts are stored in GIT.

I
Ivan Shumov, 2020-07-04
@inoise

either a docker or Golden Image (build a virtual machine image). There is also Ansible/Chef/Puppet

P
Puma Thailand, 2020-07-04
@opium

If in the old fashioned ansible, if in a new way, then docker and compose

S
Stanislav Bodrov, 2020-07-05
@jenki

Lots of options. It is possible for an adult through the kickstartfile for the RedHat family OS, where you can describe the installation and configuration of the OS at all stages, as well as describe the actions after installing the system. Allows you to install a system configured specifically for your needs.
We wrote above about tools such as Ansible, I wrote it once, then just add the address of the target host / hosts.
For cloud solutions, in addition to their own, there is Terraform, also described above.
You can make your own OS image, nurtured for yourself, and if there is such an opportunity, pull it up.

V
Valentine, 2020-07-11
@ProFfeSsoRr

It depends where to deploy it: if you need to create virtual machines for this, create it through Terraform, then configure it through Ansible. If hosting can be done in containers, it's easier to assemble them and roll them out ready-made.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question