R
R
Roman Gogolev2017-10-10 17:51:01
linux
Roman Gogolev, 2017-10-10 17:51:01

Is there a configuration manager for one server?

Good afternoon.
In my work, I have to maintain several sites from different customers, deployed on virtual servers. At some point, I realized that if the server dies, or something else happens, then I can get the site code from the git, the database from the backup, but what to do with the server configuration? Now she is not controlled in any way and rests on her word of honor.
I know that there are puppet, saltstack, chef, ansible, but they all look like big monsters and are not suitable for the "serve one virtual machine" configuration (at least those that work on the "client-server" principle). I would like a simple solution so that you can install one application on a new server, load configs into it (from the git), and the application itself would configure the server.
Interested in automatic configuration of nginx, apache, php, mysql, cron.
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Cheremisin, 2017-10-10
@romka777

I still recommend ansible.
Firstly, it does not work as a client-server, but works entirely via ssh and nothing needs to be installed on the server side.
Secondly, it is quite easy to learn.
Thirdly, install ansible - a matter of 5 minutes

S
Sanes, 2017-10-10
@Sanes

Ansible is as simple as 3 kopecks. For circulation deployment, that's it.

R
rustler2000, 2017-10-10
@rustler2000

etckeeper :D

R
rionnagel, 2018-06-13
@rionnagel

Puppet манифесты можно запускать без сервера, это может быть вариантом.
chef тоже можно запускать локально, это может быть вариантом.
ansible плэйбуки можно запускать с локалхоста по ссш до сервера, это может быть вариантом.
Докер может быть ещё одним вариантом.
bash скрипты могут быть вариантом.
Сохраненные конфиги в гите со структурой каталогов и маленьким скриптиком могут быть вариантом.
gitlab-ci может быть вариантом.
С остальными не работал - не могу сказать.
Выбирайте что сердцу мило)
Я бы именно для вашего варианта рекомендовал бы больше всего ansible+gitlab-ci. В пайплайнах ci описать варианты что ставить, редактируем hosts, делаем пуш и в пайплайнах просто нажимаем кнопку что надо с этим сделать. И получаем полный вывод результата в читабельном виде, в реальном времени (если надо можно цепочку тестов делать например). Гитлаб воркер ставится на машину с ансиблом. Да и сразу версионирование получите и историю.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question