4
4
4Proof2016-07-31 23:04:29
PHP
4Proof, 2016-07-31 23:04:29

How can I automatically save configuration remotely/versioning?

There was a question about how to save a new configuration from all virtual servers (50-100pcs). I decided to find out if there is some standard solution, so as not to invent my own bike.
There are:
1. ~70 constantly working virtual rooms with different configurations of docker, nginx, site, and other configs.
2. the configuration of services is the same on almost all servers (sometimes it is manually changed to try to get the best result).
3. A new configuration is poured using ansible.
4. Sometimes manual tuning is more convenient.
It is necessary:
​​1. To be able to automatically save changes to certain folders / files with configs.
2. Be able to see the differences between config versions (do not save the same)
There is an idea to write a script with a bunch of git + bash + cron and push, when changes are detected, configs to the repository (check every minute on a schedule), but this is not very convenient. Especially to get the desired version of the config of a particular service. Of course, you can separate for each service to make a group of repositories, compare with the default config, in case of changes, push to the repository with the server number.
As a second option, you can use tfpd and add the date to the name, but it's inconvenient to get this or the previous config back to the server, in case of a bug in the new one, you can't make a description either.
As a third option, you can use ansible reverse copyand store it in the repository too, but it is inconvenient to call and takes a long time.
It is very inconvenient not to manually copy the required/new/modified config from the target server to ansible (to apply it to everyone else), and at the same time save the old config just in case.
Maybe there are some other solutions for managing the backup of the current / changed configuration?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
65536, 2016-03-20
@nikita0509

mb so RewriteRule (.*)feed/(.*) /$1$2 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question