Answer the question
In order to leave comments, you need to log in
Is it possible to git control the configuration of a web server running Ubuntu?
Question: Is it possible to make git control the web server configuration?
If some daemon stops working with an incorrect configuration, will this help fix the problem faster? - I think yes!
If there is a crash during the download - is it possible to restore the old configuration through git?
If there is a good example on the net - please provide a link!
Why do I need it? - I want to emulate a bunch of servers on virtualbox for load balancing, and in case of unsuccessful settings - rollback via git
An example of working with etckeeper
Answer the question
In order to leave comments, you need to log in
In virtualbox, you can rollback through snapshots. much more convenient, especially for those who do not understand the git (the author, judging by the questions, is among them)
and so - everything is possible. etckeeper or handles
Try Docker. Just create a Dockerfile, add configs, users, groups to the container (you can make your own, or take any you like as a basis), run applications, set up network connections. And in which case - rebuild again, and it takes seconds.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question