mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 19:29:05 +00:00
dconf: add dbus-broker support by improving D-Bus session discovery (#11772)
* dconf: add dbus-broker support by improving D-Bus session discovery Extend DBusWrapper._get_existing_dbus_session() to check: 1. DBUS_SESSION_BUS_ADDRESS in the current process environment 2. /run/user/<uid>/bus (canonical socket for systemd and dbus-broker) 3. Process scan (legacy fallback, as before) Also add _validate_address() to support both dbus-send and busctl, making the module work on systems using dbus-broker (e.g. Fedora Silverblue) where no process exposes DBUS_SESSION_BUS_ADDRESS in its environment. Fixes: https://github.com/ansible-collections/community.general/issues/495 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * dconf: add changelog fragment for dbus-broker support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * dconf: restore dbus validator requirement and example usage Restore fail_json when neither dbus-send nor busctl is available, preserving the original hard requirement for a validator binary. Restore the example invocation in DBusWrapper docstring. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
78d004d96e
commit
24ca79658a
2 changed files with 55 additions and 34 deletions
3
changelogs/fragments/11772-dconf-dbus-broker.yml
Normal file
3
changelogs/fragments/11772-dconf-dbus-broker.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
minor_changes:
|
||||
- dconf - add support for C(dbus-broker) (https://github.com/ansible-collections/community.general/issues/495,
|
||||
https://github.com/ansible-collections/community.general/pull/11772).
|
||||
Loading…
Add table
Add a link
Reference in a new issue