1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00
community.general/plugins/module_utils
Christoph Fiehe ce7cb4e914
New module icinga2_downtime (#11462)
* feat: Icinga 2 downtime module added allowing to schedule and remove downtimes through its REST API.

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* ensure compatibility with ModuleTestCase

feat: errors raised from MH now contain the changed flag
ref: move module exit out of the decorated run method

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* revised module

ref: module refactored using StateModuleHelper now
ref: suggested changes by reviewer added

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* revert change regarding changed flag in MH

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* refactoring and set changed flag explicitly on error

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* Check whether there was a state change on module failure removed.

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* ref: test cases migrated to the new feature that allows passing through exceptions

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* Update plugins/module_utils/icinga2.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/module_utils/icinga2.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/icinga2_downtime.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* ref: make module helper private

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* fix: ensure that all non-null values are added to the request otherwise a `false` value is dropped

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* ref: module description extended with the note that check mode is not supported

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* Update plugins/modules/icinga2_downtime.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* fix: documentation updated

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* ref: documentation updated
ref: doc fragment added

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* Update plugins/doc_fragments/icinga2_api.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* ref: doc fragment renamed to `_icinga2_api.py`

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* ref: maintainer to doc fragment in BOTMETA.yml added

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>

* Update plugins/modules/icinga2_downtime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/icinga2_downtime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/icinga2_downtime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>
Co-authored-by: Fiehe Christoph <c.fiehe@eurodata.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-02-23 05:38:54 +01:00
..
identity/keycloak keycloak_realm_localization: new module - realm localization control (#10841) 2026-02-18 07:05:34 +01:00
mh ModuleHelper: ensure compatibility with ModuleTestCase (#11488) 2026-02-18 07:08:49 +01:00
net_tools/pritunl Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
oracle Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
remote_management/lxca Add more module_utils typing (#11283) 2025-12-15 19:46:51 +01:00
source_control Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
storage Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
__init__.py Add __init__.py to work around ansible-test/pylint bug (#10926) 2025-10-15 21:42:55 +02:00
_filelock.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
_icinga2.py New module icinga2_downtime (#11462) 2026-02-23 05:38:54 +01:00
_lxc.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
_stormssh.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
alicloud_ecs.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
android_sdkmanager.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
btrfs.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
cloud.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
cmd_runner.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
cmd_runner_fmt.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
consul.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
csv.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
database.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
datetime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
deps.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
dimensiondata.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
django.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
gandi_livedns_api.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gconftool2.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gio_mime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
gitlab.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
heroku.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
homebrew.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
hwc_utils.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
ibm_sa_utils.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
ilo_redfish_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
influxdb.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
ipa.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
jenkins.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
known_hosts.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
ldap.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
linode.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
locale_gen.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
lxd.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
manageiq.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
memset.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
module_helper.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
ocapi_utils.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
oneandone.py Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13:00
onepassword.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
oneview.py replace redundant to_native()/to_text() occurrences, batch 7 (#11112) 2025-11-13 10:38:29 +13:00
online.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
opennebula.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
pacemaker.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
pipx.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
pkg_req.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
puppet.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
python_runner.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
redfish_utils.py Update check_availability_service to return data instead of boolean (#11504) 2026-02-14 21:05:57 +01:00
redis.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
rundeck.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
saslprep.py Deprecate unused module utils (#11205) 2025-11-25 06:50:06 +01:00
scaleway.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
snap.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
ssh.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
systemd.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
univention_umc.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
utm_utils.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
vardict.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
version.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
vexata.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
wdc_redfish_utils.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
xdg_mime.py Add basic typing for module_utils (#11222) 2025-12-01 20:40:06 +01:00
xenserver.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
xfconf.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00