This website requires JavaScript.
Explore
Help
Sign in
ansible
/
community.general
Watch
1
Star
0
Fork
You've already forked community.general
0
mirror of
https://github.com/ansible-collections/community.general.git
synced
2024-09-14 20:13:21 +02:00
Code
Releases
Activity
557594c392
community.general
/
tests
/
integration
/
targets
/
monit
/
meta
/
main.yml
4 lines
61 B
YAML
Raw
Normal View
History
Unescape
Escape
monit: fix module detection of monitored process state (#1107) * refactor and test * require version >= 5.21.0 Prior to this version the status output was different * python version compatability * use exception classes from utils * modify monit to use 'status' output instead of 'summary' output The summary output is a fixed width table which truncates the contents and prevents us from parsing the actual status of the program. * add integration tests + fixes * remove unused handlers in monit integration test * fix lint * add '__metaclass__ = type' to integration python files * raise AttributeError * simplify status * lint: add type to parameter docs * remove lint ignore * move monit process config into main file * specify path to monit PID file * set config location based on os_family * create required directories * update aliases to set group and skips * add changelog * add author * add types to docs * add EPEL repo * custom vars for centos-6 * uninstall EPEL * support older versions * wait for status to change before exiting * use 'validate' to force status updates * handle 'execution failed' * better status output for errors * add more context to failure + standardize * don't check rc for validate * legacy string format support * add integration test for 'reloaded' and 'present' * don't wait after reload * lint * Revert "uninstall EPEL" This reverts commit 4d548718d0fd6d93a06119f556cac01b74bf634a. * make 'present' more robust * Apply suggestions from code review Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * add license header * drop daemon.py and use python-daemon instead * skip python2.6 which is not supported by python-daemon * refactor test tasks for reuse * cleanup files after test * lint * start process before enabling monit This shouldn't be necessary but I'm adding it in the hopes it will make tests more robust. * retry task * attempt to rescue the task on failure * fix indentation * ignore check if rescue ran * restart monit instead of reload Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-10-23 12:26:23 +02:00
dependencies
:
-
setup_pkg_mgr
python-daemon 2.3.1 requires Python 3+. (#4977) (#4980) (cherry picked from commit e1cfa13a1b24cf9f4128601f67ebd4a88f35c53a) Co-authored-by: Felix Fontein <felix@fontein.de>
2022-07-23 13:32:59 +02:00
-
setup_remote_constraints
Copy permalink