Answer the question
In order to leave comments, you need to log in
Ubuntu Server server monitoring?
Hello! There is an Ubuntu server, three users have root access. And there are cases when some actions of one user interfere with another. A very funny example: We edited one Apache config weekly for 3 months and the sites did not work for us.
Question. Is there a system for tracking the installation of new software, changes in configs, and indeed actions. To be categorized.
Answer the question
In order to leave comments, you need to log in
To prevent this from happening - take Ansible or Chef and make a configuration for it. You put the configuration in a repository, for example, GitHub, and builds only through the Building Tool, for example, Jenkins. And that's it, no conflicts. And take away everyone's access from the server, of course
I have a small turnip in Gitlab, which contains Nginx website configs and PHP configs, and a CI job for this turnip, which decomposes all these configs with each commit. And restarts the web server and what else is needed.
Very comfortably.
server-config:
stage: server-config
tags:
- deb96-ovh
script:
- sudo cp --verbose --recursive etc /
- ls -l /etc/nginx/conf.d/
- sudo nginx -t
# if commit message has "RESTART" - restart, else - just reload
- if echo $CI_COMMIT_MESSAGE | grep -iqF restart; then
- sudo systemctl restart php7.0-fpm.service
- sudo systemctl restart nginx
- else
- sudo systemctl reload php7.0-fpm.service
- sudo nginx -s reload
- fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question