-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ansible #932
add ansible #932
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #932 +/- ##
=======================================
Coverage 87.93% 87.93%
=======================================
Files 71 71
Lines 1003 1003
=======================================
Hits 882 882
Misses 121 121 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
ansible/monit/files/redis
Outdated
if 5 restarts within 5 cycles | ||
then timeout | ||
|
||
alert |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alert | |
alert | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Виористовується для тригеру повідомлень
ansible/monit/files/postgresql
Outdated
if failed | ||
port 5432 | ||
|
||
then alert |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then alert | |
then alert | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Виористовується для тригеру повідомлень
check process nginx with pidfile /run/nginx.pid | ||
start program = "/usr/sbin/service nginx start" with timeout 60 seconds | ||
stop program = "/usr/sbin/service nginx stop" | ||
if failed host 127.0.0.1 port 443 protocol https for 3 cycles then restart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if failed host 127.0.0.1 port 443 protocol https for 3 cycles then restart | |
if failed host 127.0.0.1 port 443 protocol https for 3 cycles then restart | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Конфіг для перезавантаження сервісу, пропоную залишити
ansible/inventory.yml
Outdated
ansible_host: 185.233.37.137 | ||
ansible_user: deploy | ||
ansible_ssh_private_key: ~/.ssh/ansible | ||
ansible_connection: ssh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ansible_connection: ssh | |
ansible_connection: ssh | |
check process nginx with pidfile /run/nginx.pid | ||
start program = "/usr/sbin/service nginx start" with timeout 60 seconds | ||
stop program = "/usr/sbin/service nginx stop" | ||
if failed host 127.0.0.1 port 443 protocol https for 3 cycles then restart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а чому тут алерт не даєш?
- name: Restart monit | ||
service: | ||
name: monit | ||
state: restarted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а що це таке?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хандлер для перезавантаження моніту при встановленні, використовуєтьс в головному конфігураційному файлі
ansible/monit/meta/main.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нам цей файлик точно потрібен?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
диви, а чому б не використати команду з пакет менеджером, щоб встановити моніт?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нам цей файлик точно потрібен?
Я не видаляв стандартно згенеровані роллю файли. Зараз він не використовується, в майбутньому невідомо чи буде потрібен. Видаляти?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
диви, а чому б не використати команду з пакет менеджером, щоб встановити моніт?
Вона і використовується:
apt:
name: monit
ansible/monit/tests/test.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а що це за файлик?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Файлик згенерований автоматично. Не обов'язковий але рекомендовано щоб він був. Видаляти?
dev
JIRA
Code reviewers
Second Level Review
Summary of issue
ToDo
Summary of change
ToDo
Testing approach
ToDo
CHECK LIST