1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] 96a970475f
monit: fix module detection of monitored process state (#1107) (#1163)
* 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 4d548718d0.

* 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>
(cherry picked from commit 8de1c0c205)

Co-authored-by: Simon Kelly <skelly@dimagi.com>
2020-10-23 14:01:01 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:18:40 +02:00
349-pacman_improve_group_expansion_speed.yml Improve group expansion speed: query list of pacman groups once (#349) (#349) (#1060) 2020-10-09 13:25:34 +00:00
409-datadog-monitor-include-tags.yaml Add include_tags to datadog_monitor (#409) (#1158) 2020-10-23 07:48:41 +02:00
886-postgresql_query_add_ret_vals.yml postgresql_query: add query_all_results ret value (#886) (#1131) 2020-10-20 10:37:40 +03:00
968-gitlab_variables-pagination.yml Gitlab variables pagination (#968) (#1063) 2020-10-09 15:30:02 +02:00
993-file-capabilities.yml [capabilities] fix for a newer versions of libcap (#1061) (#1110) 2020-10-16 21:23:43 +02:00
1024-vault-skip-verify-support.yml Respect VAULT_SKIP_VERIFY envionment variable setting in hashi_vault lookup plugin (#1024) (#1062) 2020-10-09 15:30:11 +02:00
1028-proxmox-kvm-linked-clone.yml proxmox_kvm: allow setting format to null (None) (#1028) (#1071) 2020-10-10 12:36:19 +02:00
1036-redis-cache-keyset-name.yaml cache/redis: make keyset keyname configurable (#1036) (#1074) 2020-10-11 20:05:17 +02:00
1048-postgresql_privs_add_procedure_type.yml postgresql_privs: add procedure type support (#1048) (#1056) 2020-10-08 09:03:33 +03:00
1055-redis-cache-sentinel.yaml cache/redis: feature redis sentinel (#1055) (#1130) 2020-10-20 10:00:16 +02:00
1059-postgresql_privs_fix_failings_when_using_roles_with_hyphen.yml postgresql_privs: fix module fails when passing roles containing hyphens (#1059) (#1073) 2020-10-11 15:37:52 +03:00
1078-postgresql_ext_fix_version_selection_when_version_is_latest.yml postgresql_ext: sort list of available versions (#1078) (#1084) 2020-10-13 14:53:17 +03:00
1079-redis-use-regexp-to-check-if-the-value-matches-expected-form.yaml redis: use regexp to check if the value matches expected form (#1079) (#1129) 2020-10-20 07:31:20 +02:00
1081-solaris_zone-python3.yml solaris_zone: fix zone configuration with python3 (#1082) (#1096) 2020-10-15 09:52:14 +02:00
1091-postgresql_info_add_in_recovery_ret_val.yml postgresql_info: add in_recovery return value to show if a service in recovery mode or not (#1091) (#1093) 2020-10-14 14:59:21 +03:00
1099-postgresql_ext_fix_failing_when_version_cannot_be_compared.yml postgresql_ext: fix module's failing when available ext versions contain a pure string (#1099) (#1104) 2020-10-16 12:15:54 +03:00
1101-slack-ts-fix.yaml move conversion of data to json in slack API handling (#1101) (#1120) 2020-10-19 11:33:03 +03:00
1107-monit-fix-status-check.yml monit: fix module detection of monitored process state (#1107) (#1163) 2020-10-23 14:01:01 +02:00
1118-docker_login-config-store.yml docker_login: fix internal config file storage to handle credentials for more than one registry (#1118) (#1145) 2020-10-21 08:39:57 +02:00
1124-pg_hba-dictkey_bugfix.yaml Fix changelog fragment (#1152) (#1153) 2020-10-22 10:44:07 +03:00
1127-maven_artifact_client_cert.yml Added client_cert and client_key to the maven_artifact module. (#1127) (#1142) 2020-10-20 20:27:23 +02:00
1140-iptables_state-fix-race-condition.yml iptables_state: fix race condition between module and its action plugin (#1140) (#1143) 2020-10-20 22:46:12 +02:00
nmcli-refactor.yml nmcli: module refactor (#1113) (#1159) 2020-10-23 07:48:29 +02:00