1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 10:35:34 +00:00
Commit graph

4330 commits

Author SHA1 Message Date
patchback[bot]
eed2e1d2ac
[PR #12124/b799c6f5 backport][stable-12] redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12173)
redfish_config: fix `KeyError: 'ret'` when `SetManagerNic` cannot find a matching NIC (#12124)

* fix(redfish_config): return proper error dict when manager NIC not found

get_manager_ethernet_uri() returned an empty dict {} when no matching NIC
was found, causing a KeyError on 'ret' in main(). Now returns a consistent
{"ret": False, "msg": ...} like all other error paths in the function.

Fixes #5892

* feat(changelog): add fragment for PR 12124

(cherry picked from commit b799c6f579)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-06-02 21:18:06 +02:00
patchback[bot]
6da3c81889
[PR #12168/1e3da48d backport][stable-12] portage: include msg in depclean failure fail_json (#12174)
portage: include msg in depclean failure fail_json (#12168)

cleanup_packages() called module.fail_json(cmd=, rc=, stdout=, stderr=)
without the mandatory msg= argument. When the underlying emerge --depclean
exited non-zero, AnsibleModule.fail_json() itself crashed with
"AnsibleModule.fail_json() missing 1 required positional argument: 'msg'"
before the real failure could reach the controller, leaving users with no
diagnostic about why depclean actually failed.

Same wording style as the sibling install_packages() failure branch
("Packages not installed.").

(cherry picked from commit 1e3da48d70)

Co-authored-by: Yoann Gauthier-Colin <yoann@gwerlas.net>
2026-06-02 21:17:55 +02:00
Felix Fontein
a218a02a8a Forgot to update schedules.
(cherry picked from commit bb710480b1)
2026-06-01 20:27:22 +02:00
patchback[bot]
61c5767d0e
[PR #12162/cdd9c1dd backport][stable-12] test(integration): explicitly add executable to iso_extract on Fedora (#12165)
test(integration): explicitly add executable to iso_extract on Fedora (#12162)

This provides a (temporary) workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2373874:
On Fedora 43+ 7zip is unable to find the 7z.so module when it is not in the
same path as the 7z binary or in /usr/bin/

(cherry picked from commit cdd9c1ddde)

Co-authored-by: spike77453 <spike77453@users.noreply.github.com>
2026-06-01 06:33:54 +02:00
Felix Fontein
141a273d1f Prepare 12.6.2. 2026-05-31 17:59:33 +02:00
patchback[bot]
74b8eec664
[PR #12157/7d8bf179 backport][stable-12] CI: improve nox GHA workflow (#12159)
CI: improve nox GHA workflow (#12157)

* Auto-cancel older PR nox runs.

* Use shared workflow.

(cherry picked from commit 7d8bf179e7)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-31 17:58:38 +02:00
patchback[bot]
a58bb6af00
[PR #12123/49ca175f backport][stable-12] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12155)
htpasswd: fix `hash_scheme` aliases and Apache-compatible bcrypt (#12123)

* fix(htpasswd): support HtpasswdFile aliases and Apache-compatible bcrypt

CryptContext does not recognise HtpasswdFile alias names such as
portable, portable_apache_24, host_apache_24, causing a KeyError.
In addition, building a CryptContext for bcrypt produced $2b$ hashes
that Apache rejects (it only accepts $2y$/$2a$).

Use htpasswd_context for schemes it already supports, fall back to
htpasswd_context on KeyError for aliases, and import CryptContext
from module_utils/_crypt.py instead of passlib directly.

Fixes #6135



* feat(changelog): add fragment for PR 12123



* fix(_crypt): silence DeprecationWarning when importing stdlib crypt

On Python 3.11/3.12, `import crypt` emits a DeprecationWarning that
ansible-test sanity --test import treats as an error. Suppress it since
the import is an intentional fallback when passlib is not available.



* fix(htpasswd): fix sanity ignores and bcrypt version constraint

- Revert _crypt.py DeprecationWarning suppression; add sanity ignore
  entries for htpasswd.py import-3.11/3.12 instead (mirrors existing
  entries for _crypt.py itself)
- Pin bcrypt<4.2 in integration tests: bcrypt 4.2 removed __about__
  which passlib 1.7.x uses, breaking passlib.apache import
- Fix regex_search assertion to use 'is not none' for a boolean result
- Add bcrypt version constraint note to module documentation



* fix(htpasswd): handle system-installed bcrypt in integration tests

On Debian/Ubuntu, bcrypt may be installed by the system package manager
with no RECORD file, making pip downgrade impossible. Move bcrypt
installation into a self-contained block in test_schemes.yml with
ignore_errors, a functional passlib+bcrypt check, and always-cleanup.
Bcrypt tests are skipped when a compatible version cannot be used.



* refactor(htpasswd): extract obtain_crypt_context(); import CryptContext from passlib directly

Extract context selection logic into obtain_crypt_context(). Import
CryptContext inside the deps.declare("passlib") block instead of from
module_utils/_crypt.py — passlib is already a hard dependency and
other symbols are imported from it there. Remove now-unnecessary
htpasswd.py sanity import ignore entries.



---------


(cherry picked from commit 49ca175f01)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 16:58:55 +02:00
patchback[bot]
31aabddc46
[PR #12121/6e6199ae backport][stable-12] parted: ignore MBR partition type codes in flags on SUSE systems (#12146)
parted: ignore MBR partition type codes in flags on SUSE systems (#12121)

* parted: ignore MBR partition type codes reported as flags by SUSE parted

SUSE's patched parted reports MBR partition type codes (e.g., type=8e for
Linux LVM) in the machine-parseable flags output. The module was trying to
unset these pseudo-flags via 'parted set N type=8e off', which is not a
valid parted command, causing the task to fail when using flags: [lvm] on
msdos-labelled disks on SUSE systems.

Fixes #6292



* feat(changelog): add fragment for PR 12121

* Update changelogs/fragments/12121-parted-suse-msdos-type-code.yml



---------



(cherry picked from commit 6e6199ae3d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-31 08:35:36 +02:00
patchback[bot]
789789f202
[PR #12137/5d62edc6 backport][stable-12] pamd: handle non-PAM lines in authselect profile files (#12144)
pamd: handle non-PAM lines in authselect profile files (#12137)

* fix(pamd): handle non-PAM lines in authselect profile files



* test(pamd): add test for authselect directive lines



* feat(changelog): add fragment for PR 12137



---------


(cherry picked from commit 5d62edc673)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 00:05:00 +02:00
patchback[bot]
2e628f9895
[PR #12113/ef5b22d1 backport][stable-12] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12142)
unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12113)

* fixes issue #12112

* adjust PR ID

* adjust PR ID, mistake was made

* adjust PR ID

* I messed up all these numbers

---------


(cherry picked from commit ef5b22d18e)

Co-authored-by: Stefan Midjich <stemid@users.noreply.github.com>
Co-authored-by: Stefan Midjich <stefan@sydit.se>
2026-05-30 20:29:37 +02:00
patchback[bot]
eedba20600
[PR #12128/a794ccf1 backport][stable-12] zpool: reduce disk usage in integration tests by using sparse files (#12135)
zpool: reduce disk usage in integration tests by using sparse files (#12128)

* zpool: use sparse files in integration tests to reduce diskspace usage

* changelog: add PR link to zpool disk space fragment

* remove changelog fragment for test-only change

(cherry picked from commit a794ccf127)

Co-authored-by: Shreyashxredhat <shrbhosa@redhat.com>
2026-05-30 15:11:19 +02:00
patchback[bot]
410383e95f
[PR #12084/8468fea3 backport][stable-12] composer: config file hash to evaluate whether a change occurred (#12131)
composer: config file hash to evaluate whether a change occurred (#12084)

* composer: Use config file hash to evaluate whether a change occurred (instead of unreliable output). Ensure `--working-dir` option consistently comes first (sudo-friendly)

* Update plugins/modules/composer.py



* whitespace fixes + changelog fragment

* Update changelogs/fragments/composer-working-dir-and-config-sha256.yaml



* Update changelogs/fragments/composer-working-dir-and-config-sha256.yaml



* Update plugins/modules/composer.py



* fragment

* ruff format  plugins/modules/composer.py

---------



(cherry picked from commit 8468fea3b0)

Co-authored-by: Raphaël Droz <raphael@droz.eu>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-30 14:34:42 +02:00
patchback[bot]
fee35e6ec2
[PR #12115/38399c81 backport][stable-12] CI: Update Azure Pipelines test container (#12117)
CI: Update Azure Pipelines test container (#12115)

Update Azure Pipelines test container.

(cherry picked from commit 38399c8107)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-28 22:04:17 +02:00
patchback[bot]
cd057ddcdb
[PR #12106/50046965 backport][stable-12] lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12110)
lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12106)

* Fix create_script in plugins/module_utils/_lxc.py

* Added changelog fragment

* Apply suggestions from code review - updated typing



* Apply suggestion from code review - fixed docstring argument name



* Apply suggestion from code review



* Update plugins/module_utils/_lxc.py



---------



(cherry picked from commit 50046965c9)

Co-authored-by: usbpc <3638901+usbpc@users.noreply.github.com>
Co-authored-by: Kevin Holm <kevin@holm.dev>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-27 12:48:57 +02:00
patchback[bot]
b759173038
[PR #12095/b1c7700a backport][stable-12] multiple: mark integration tests that run pip install as destructive (#12099)
multiple: mark integration tests that run `pip install` as destructive (#12095)

test(integration): mark pip-installing tests as destructive


(cherry picked from commit b1c7700a1b)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 15:21:12 +02:00
patchback[bot]
3e276c4e6e
[PR #12085/fdace385 backport][stable-12] nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12091)
nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12085)

* nmcli: bond ARP options stop lying in check/diff (#11588)

Align arp_interval/arp_ip_target keys with bond.options parsing, route
ARP settings via +bond.options, and fix bond MTU false positives.

* Changelog: nmcli fragment gets PR links and clearer diff wording

Address reviewer feedback on #12085 — both entries now cite the PR URL
and the MTU entry says "incorrectly reports diff" instead of "false positives".

---------


(cherry picked from commit fdace38501)

Co-authored-by: Asif Draxi <47986843+AsifAd@users.noreply.github.com>
Co-authored-by: Asif Draxi <asif.draxi@blackline.com>
2026-05-23 21:40:22 +02:00
patchback[bot]
232d27b9ab
[PR #12078/e6ca0df5 backport][stable-12] Fix typing (#12079)
* Fix typing (#12078)

Fix typing.

ansible-core 2.21.0 is out and has more type definitions.

(cherry picked from commit e6ca0df592)

* Also add no-assert to 2.17 ignore file.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-19 08:25:30 +02:00
Felix Fontein
49732893e7 Add missing newline.
Ref: https://github.com/ansible-community/antsibull-changelog/pull/217
2026-05-18 20:52:29 +02:00
Felix Fontein
ffe13a0b07 The next release will be 12.6.2. 2026-05-17 13:56:07 +02:00
Felix Fontein
1a7f01d0b2
Release 12.6.1. 2026-05-17 12:59:47 +02:00
Felix Fontein
dedbedf917 Revert "[PR #11996/2cb4a5d4 backport][stable-12] gitlab_user: update SSH keys when key material changes (#12038)"
This reverts commit b94ac3fa21.
2026-05-17 12:59:18 +02:00
patchback[bot]
3e50838589
[PR #12063/3558e3c7 backport][stable-12] Fix flatpak id check (#12073)
Fix flatpak id check (#12063)

* Fix flatpak id check

This PR fixes the flatpak ID check by allowing the last component of the ID to contain dashes. The regular expression will match the flatpak ID according to the flatpak specification. It matches all 4600+ IDs currently present in flathub.

Fixes #12062

* Add changelog fragment

* Update plugins/modules/flatpak.py



* Update changelog fragment.

---------


(cherry picked from commit 3558e3c74a)

Co-authored-by: Gerben Welter <gerben@welter.nu>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-17 11:49:48 +02:00
patchback[bot]
fd13c1bcde
[PR #12072/528c2879 backport][stable-12] Mark nomad tests as unstable (#12074)
Mark nomad tests as unstable (#12072)

Mark nomad tests as unstable.

(cherry picked from commit 528c2879d5)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-17 11:49:41 +02:00
patchback[bot]
c54ddec34a
[PR #12039/c2485ea5 backport][stable-12] apt_rpm: fix upgrade of local RPM not present in repository (#9161) (#12066)
apt_rpm: fix upgrade of local RPM not present in repository (#9161) (#12039)

(cherry picked from commit c2485ea57b)

Co-authored-by: bne1hm <67783534+bne1hm@users.noreply.github.com>
2026-05-17 11:09:43 +02:00
patchback[bot]
fb3e873d98
[PR #12064/9cba458e backport][stable-12] cargo: fix version parsing when state=latest (#12069)
cargo: fix version parsing when `state=latest` (#12064)

* fix(cargo): fix greedy regex in get_latest_published_version

Fixes #8949

* docs(cargo): add changelog fragment for #12064

(cherry picked from commit 9cba458e3e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-17 11:09:33 +02:00
patchback[bot]
7304fd6b3c
[PR #12065/2f83a5b0 backport][stable-12] selective callback plugin: align host names in stats output (#12071)
selective callback plugin: align host names in stats output (#12065)

* fix(selective): align host names in stats output



* changelog(selective): add fragment for PR #12065



---------


(cherry picked from commit 2f83a5b084)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 11:09:29 +02:00
patchback[bot]
bd8740892a
[PR #12055/a15d9a35 backport][stable-12] packet_project and packet_sshkey: fix broken example plays (#12058)
packet_project and packet_sshkey: fix broken example plays (#12055)

Fix example plays.

(cherry picked from commit a15d9a3510)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-16 10:57:02 +02:00
patchback[bot]
d2e3646c3a
[PR #12052/2f96093d backport][stable-12] CI: Replace Ubuntu 22.04 with 26.04 for ansible-core devel (#12053)
CI: Replace Ubuntu 22.04 with 26.04 for ansible-core devel (#12052)

Replace Ubuntu 22.04 with 26.04 for devel.

(cherry picked from commit 2f96093dbf)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-15 12:48:14 +02:00
patchback[bot]
9b567c686f
[PR #12047/eb69d25e backport][stable-12] apk: document non-interactive mode requirement (#12051)
apk: document non-interactive mode requirement (#12047)

* apk: document non-interactive mode requirement

* apk: fix file path markup in documentation

Change file path markup from E() to C() in the notes section.



---------


(cherry picked from commit eb69d25e45)

Co-authored-by: Francisco Pereira <113396399+Francisco-xiq@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-14 21:53:04 +02:00
patchback[bot]
0085876c0a
[PR #12045/5447d0eb backport][stable-12] Setup pip path generic (#12046)
Setup pip path generic (#12045)

* setup_pip_path: use sysconfig to build pip scripts path generically



* setup_pip_path: calculate PATH prepended with pip installation path

* move environment up to block

* obtain path from pip itself

* apparently the python interpreter doesnt go into ansible_facts

* rename role to setup_pip_scripts_path

---------


(cherry picked from commit 5447d0eb4f)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 14:16:21 +02:00
patchback[bot]
6d710fe05c
[PR #11911/fba7da43 backport][stable-12] Remove as maintainer (#12043)
Remove as maintainer (#11911)

Remove ownership

I do not maintain those modules anymore since years. I think the time
has come to remove at least my name from them.

(cherry picked from commit fba7da4394)

Co-authored-by: keachi <1687482+keachi@users.noreply.github.com>
2026-05-14 11:03:48 +02:00
patchback[bot]
87ce1e09a3
[PR #12030/6e48c5fc backport][stable-12] xml: adjust example doc (#12035)
xml: adjust example doc (#12030)

(cherry picked from commit 6e48c5fc4e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-13 08:08:04 +02:00
patchback[bot]
dad425d3c6
[PR #12024/00060263 backport][stable-12] bundler: replace deprecated CLI flags with BUNDLE_* env vars (#12037)
bundler: replace deprecated CLI flags with `BUNDLE_*` env vars (#12024)

* fix(bundler): replace deprecated CLI flags with BUNDLE_* env vars

Bundler 2.1 deprecated --deployment, --without, --path, --clean, and
--binstubs; Bundler 4 has removed --clean entirely. Pass these options
as BUNDLE_* environment variables instead, which have been supported
since Bundler 1.0.0 and are scoped to the process (no persistent
.bundle/config written).

Fixes #4583, fixes #11380



* fix(bundler): add changelog fragment for PR #12024



---------


(cherry picked from commit 00060263a5)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 08:07:49 +02:00
patchback[bot]
46f6a7a69a
[PR #12019/171feb5a backport][stable-12] datadog_downtime: handle uuid.UUID type in API response (#12036)
datadog_downtime: handle uuid.UUID type in API response (#12019)

* fix(datadog_downtime): convert uuid field to str for datadog-api-client>=2.28.0



* changelog: add fragment for PR 12019



---------


(cherry picked from commit 171feb5a2c)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 08:07:37 +02:00
patchback[bot]
b94ac3fa21
[PR #11996/2cb4a5d4 backport][stable-12] gitlab_user: update SSH keys when key material changes (#12038)
gitlab_user: update SSH keys when key material changes (#11996)

* gitlab_user: update SSH keys when key material changes

Compare SSH keys by key type and key material so comment-only differences remain idempotent while changed keys are replaced. Add unit and integration coverage for SSH key updates.

Fixes #6516

* gitlab_user: add SSH key update modes

Restore backward-compatible same-name SSH key handling by default and
add explicit update and deduplicate modes for controlled replacement
behavior.

Refs: #6516

* Apply suggestions from code review



---------


(cherry picked from commit 2cb4a5d4e7)

Co-authored-by: Fulvius <31437530+LCerebo@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-13 08:07:21 +02:00
patchback[bot]
983e3fc2bb
[PR #12023/87a42725 backport][stable-12] java_cert/java_keystore: re-enable RHEL tests (#12027)
java_cert/java_keystore: re-enable RHEL tests (#12023)

* java_cert/java_keystore: re-enable RHEL tests

* bump java to version 21 in RHEL

(cherry picked from commit 87a42725e0)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-10 11:59:17 +02:00
patchback[bot]
bb539f1d56
[PR #12013/abef8f2a backport][stable-12] xml: fix print_match not populating matches return value (#12021)
xml: fix `print_match` not populating `matches` return value (#12013)

* fix(xml): populate matches when print_match is set, fix returned doc



* test(xml): add integration tests for print_match



* changelog: add fragment for PR 12013



---------


(cherry picked from commit abef8f2aed)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 10:22:16 +02:00
patchback[bot]
b1d88ae3c1
[PR #12014/b8659f5c backport][stable-12] pam_limits: only create backup file when content actually changes (#12020)
pam_limits: only create backup file when content actually changes (#12014)

* fix(pam_limits): only create backup when file is actually changed

Fixes #12011



* changelog: add fragment for PR 12014



---------


(cherry picked from commit b8659f5c61)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 10:22:07 +02:00
patchback[bot]
b3669957d9
[PR #11917/798439f1 backport][stable-12] Fix gitlab_hook: add default value for releases_events parameter (#12017)
Fix gitlab_hook: add default value for releases_events parameter (#11917)

* Fix gitlab_hook: only pass releases_events to API when specified

The releases_events parameter now only gets passed to the GitLab API:
- On create: always passed (fixes 500 error when not specified)
- On update: only passed when explicitly specified by user

This avoids forcing the releases_events value during updates when not
intended by the user.

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add changelog fragment for gitlab_hook releases_events fix

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add PR link to changelog fragment

* Use .get() for safer dict access in releases_events handling

* Update plugins/modules/gitlab_hook.py

remove `.get()`



* Update plugins/modules/gitlab_hook.py

Remove the null check for `options[“releases_events”]`



---------



(cherry picked from commit 798439f1fe)

Co-authored-by: RealCharlesChia <161665317+RealCharlesChia@users.noreply.github.com>
Co-authored-by: Charles Chia <charleschia@email.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 22:05:55 +02:00
patchback[bot]
4ecae71dc9
[PR #11922/cdd0d252 backport][stable-12] jenkins_credential: improve example and description in documentation (#12016)
jenkins_credential: improve example and description in documentation (#11922)

* Fixes and improvements for better undestanding of the module

- Fixed token generation syntax to use `name` instead of `id`.
- Changed `token: {{ token }}` to `token: {{ token_result.token }}` to show accessing token from the registered variable, essentially making the entire Example section a playbook capable of full execution.
- Added notes in the Example section about the intended approach for storing and accessing tokens.
- Mentioned about not using `id` for token generation in the parameter's description.

* Applying FQCN for the `ansible.builtin.copy` module



* Shortened the notes about storing and accessing Jenkins token.

* Added line breaks to reduce width of the shortened notes

- Added line breaks to reduce the width of the shortened note from commit #5bc225b.
- Numbered and indented the notes for clear distinction.

* Changed token storage example to use INI instead of CSV format

---------


(cherry picked from commit cdd0d2521e)

Co-authored-by: Sonal Karmakar <234934724+sonalkarmakar@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 22:05:41 +02:00
patchback[bot]
5c8d0feb45
[PR #11997/240ff653 backport][stable-12] filetree lookup: document RETURN value state (#12010)
filetree lookup: document RETURN value `state` (#11997)

* Clarify 'state' parameter description in filetree.py

Updated the description for the 'state' parameter to clarify entry types and their meanings.

* Apply suggestion from felixfontein related to description



---------


(cherry picked from commit 240ff65311)

Co-authored-by: Santosh Mahale <santoshmahale7676@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-07 21:58:55 +02:00
patchback[bot]
7400d367a0
[PR #11994/a43006c7 backport][stable-12] seport: fix idempotency when port is covered by an existing range (#12004)
seport: fix idempotency when port is covered by an existing range (#11994)

* fix(seport): handle port overlap with existing ranges

Fixes idempotency when a requested port is already covered by an
existing range registered for the same setype/proto. Also improves
the error message when libsemanage raises FileNotFoundError on a
port overlap validation failure.

Fixes #10105



* chore(seport): add changelog fragment for #11994



---------


(cherry picked from commit a43006c7cb)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:38 +02:00
patchback[bot]
4df3fd064d
[PR #11990/645dd2d4 backport][stable-12] ldap_attrs: fix case-insensitive attribute lookup in state=exact (#12007)
ldap_attrs: fix case-insensitive attribute lookup in `state=exact` (#11990)

* fix(ldap_attrs): case-insensitive attribute lookup in _get_all_values_of

LDAP attribute names are case-insensitive (RFC 4512), but the previous
code used a case-sensitive dict lookup on the server's response. When
the server returns an attribute with different casing than requested,
the lookup returns [] causing state=exact to issue MOD_ADD instead of
MOD_REPLACE, which fails on single-valued attributes that already have
a value.

Fixes #1624



* feat(changelogs): add fragment for ldap_attrs fix #11990



---------


(cherry picked from commit 645dd2d448)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:31 +02:00
patchback[bot]
5467ddfe90
[PR #11992/2232f8bc backport][stable-12] saltstack connection plugin: add documentation (#12006)
saltstack connection plugin: add documentation (#11992)

docs(saltstack): add requirements, options and notes to connection plugin

Fixes #2463


(cherry picked from commit 2232f8bcc3)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 07:21:23 +02:00
patchback[bot]
7f688e78bf
[PR #11959/d87a8a16 backport][stable-12] xml: fail for non-string values (#12001)
xml: fail for non-string `value`s (#11959)

* fix(xml): coerce boolean values to string with a warning

Fixes #7171



* test(xml): add integration tests for boolean value handling



* changelog: add fragment for PR 11959



* adjustments from review

* test(xml): update boolean-value integration tests to expect failure

Now that xml fails on non-string values, replace the old success-path
tests with failure assertions and add a positive test for quoted strings.
Remove the no-longer-needed result XML fixtures.



* adjustments from review

* fix(xml): correct boolean test assertions to match actual error message format



---------


(cherry picked from commit d87a8a167f)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 20:10:45 +02:00
patchback[bot]
caeafeec1f
[PR #11943/38d49d24 backport][stable-12] yarn: add Alpine Linux support in integration tests (#12002)
yarn: add Alpine Linux support in integration tests (#11943)

* test(yarn): add Alpine Linux support via apk

Install nodejs and yarn via apk on Alpine, sharing the functional
test block with the existing non-Alpine (pre-built binary) path.
Extracts the test block into tests.yml to avoid duplication.

Fixes #4270



* fix(yarn): skip Node.js runtime warnings in stderr processing

Node.js 24 emits DeprecationWarning lines to stderr (e.g. for url.parse())
that are not JSON, causing _process_yarn_error to fail with "Unexpected
stderr output from Yarn". Skip lines starting with "(node:" before
attempting JSON parsing.



* test(yarn): add changelog fragment for #11943



* fix(yarn): only JSON-parse lines starting with '{' in stderr

Node.js 24 emits multi-line DeprecationWarnings to stderr (e.g. the hint
line "(Use `node --trace-deprecation ...`") that are not JSON and were
tripping the "Unexpected stderr output from Yarn" failure. Yarn's
structured output always starts with '{', so skip any line that doesn't.



* test(yarn): install sqlite on Alpine to fix nodejs 22 symbol error

On Alpine 3.21 nodejs 22 requires SQLite session extension symbols
(sqlite3session_*) that are not present in sqlite-libs; installing
the full sqlite package provides them.



* test(yarn): refresh apk cache and upgrade sqlite-libs before installing nodejs

The CI Alpine container may have a stale sqlite-libs that lacks the
session extension symbols (sqlite3session_*) required by nodejs 22+.
Force a cache refresh and upgrade sqlite-libs to the latest revision.



* fix(yarn): warn on non-JSON stderr lines instead of silently skipping

Non-JSON lines in stderr (e.g. Node.js runtime DeprecationWarnings) are
surfaced to the user via module.warn() rather than being silently ignored,
since their content and meaning are not known in advance.



* prefix yarn output line

* Update changelogs/fragments/11943-yarn-nodejs-runtime-warnings.yml



---------



(cherry picked from commit 38d49d240e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-06 20:10:35 +02:00
patchback[bot]
89450214dc
[PR #11995/02b969ee backport][stable-12] cobbler_system: fix KeyError when adding new interface to existing system (#12003)
cobbler_system: fix `KeyError` when adding new interface to existing system (#11995)

* fix(cobbler_system): handle missing interface device on existing system

When adding a new interface to an existing Cobbler system that does not
yet have that interface defined, the module raised a KeyError. Use .get()
with a fallback empty dict to safely handle that case. Also add a
continue after the unknown-property warning to prevent a secondary
KeyError on IFPROPS_MAPPING lookup.

Fixes: #7007



* chore(cobbler_system): add changelog fragment for #11995



---------


(cherry picked from commit 02b969ee4d)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 20:10:26 +02:00
patchback[bot]
4e0fdb757f
[PR #11933/c4fc0ff4 backport][stable-12] ipa_group: fix idempotency when external: false on existing non-external group (#11987)
ipa_group: fix idempotency when `external: false` on existing non-external group (#11933)

* fix(ipa_group): skip group_mod when external flag matches IPA state

When external=false (the default), get_group_diff() left the external
key in the diff even though the group was already non-external, causing
a spurious group_mod call that IPA rejected with "no modifications to
be performed". The fix checks equality in both directions.

Fixes #5061

* fix(ipa_group): add changelog fragment for PR 11933

* add quoting to fragment

(cherry picked from commit c4fc0ff4e1)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-05-03 21:39:58 +02:00
patchback[bot]
82555713b7
[PR #11981/de42aec7 backport][stable-12] Improve module docs (#11986)
Improve module docs (#11981)

* Fix _facts module documentation.

* Get rid of some more 'type: complex'.

(cherry picked from commit de42aec78b)

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-03 10:16:42 +00:00
patchback[bot]
c2c1899359
[PR #11972/d7f248fb backport][stable-12] odbc: fetch rows before commit to fix HY010 function sequence error (#11983)
odbc: fetch rows before commit to fix HY010 function sequence error (#11972)

* fix(odbc): fetch rows before committing to fix HY010 function sequence error

Fixes #5395



* chore(odbc): add changelog fragment for PR #11972



---------


(cherry picked from commit d7f248fb01)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 12:07:27 +02:00