community.general/changelogs/fragments
patchback[bot] 75e35bfa6c
[PR #9659/06df717b backport][stable-10] lxd_connection: Allow non-root users to connect to an instance (#9751)
lxd_connection: Allow non-root users to connect to an instance (#9659)

* fix: add support for non-root user

* fix: show correct info for connection

* fix: use build_exec_command to execute as nonroot

* unset default user

* feat: add options for setting remote user and become method

* fix: add root as default remote_user

* fix: remove ansible_ssh_user from remote_user vars

* fix: use single quotes inside f-string

* fix: ensure lxc exec comes first

* fix: line length

* fix: use -c flag with su

* Update plugins/connection/lxd.py

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

* Update plugins/connection/lxd.py

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

* Update plugins/connection/lxd.py

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

* doc: add changelog fragment

* fix: use underscore for module name in fragment

* Update 9659-lxd_connection-nonroot-user.yml

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

* fix: add put command

* feat: add get_remote_uid_gid placeholder function

* feat: complete placeholder _get_remote_uid_gid function

* fix: better logging

* fix: ensure default values are of type str

* fix: use ints for uid and gid

* fix: print put command

* fix: format

* fix: display msg for PUT

* fix: add comment about defaults

* fix: format

* fix: use os module to get uid and gid

* Revert "fix: use os module to get uid and gid"

This reverts commit bb2ba14b8f.

* Update plugins/connection/lxd.py

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

* fix: omit uid, gid args in lxd file push if root

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 06df717bc6)

Co-authored-by: Peter Siegel <33677897+yeetypete@users.noreply.github.com>
2025-02-15 13:41:24 +01:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
6264-zfs-multiline-property-value.yml [PR #6264/1f92a699 backport][stable-10] zfs: fix multi-line value in user-defined property (#9718) 2025-02-10 22:05:04 +01:00
9625-onepassword_doc.yml [PR #9625/4e0de41a backport][stable-10] onepassword_doc: fix 1Password Connect support (#9719) 2025-02-10 22:04:24 +01:00
9651-iocage-inventory-hooks.yml [PR #9651/fdd1331e backport][stable-10] Implement #9650 Add parameter hooks to inventory plugin iocage (#9731) 2025-02-11 22:23:42 +01:00
9658-add-vrf-commands-to-nmcli-module.yml [PR #9658/a842a268 backport][stable-10] Update nmcli.py to support VRF commands (#9715) 2025-02-10 22:04:32 +01:00
9659-lxd_connection-nonroot-user.yml [PR #9659/06df717b backport][stable-10] lxd_connection: Allow non-root users to connect to an instance (#9751) 2025-02-15 13:41:24 +01:00
9694-ipa-host-certificate-revoked.yml [PR #9694/d5add1ed backport][stable-10] ipa_host: Maintain the host certificates (#9721) 2025-02-10 22:08:17 +01:00
9697-zfs-facts-type.yml [PR #9697/165106d2 backport][stable-10] zfs_facts: set parameter "type" as a list (#9716) 2025-02-10 22:04:41 +01:00
9698-lvg-remove-extra-pvs-parameter.yml [PR #9698/1beee879 backport][stable-10] lvg: Add parameter to disable removal of extra physical volumes (#9717) 2025-02-10 22:04:51 +01:00
9729-redfish-fullpowercycle-command.yml [PR #9729/7af5e158 backport][stable-10] Add FullPowerCycle to Power commands (#9730) 2025-02-11 22:23:51 +01:00
9733-profitbrick-deprecation.yml [PR #9733/085bcb22 backport][stable-10] profitbricks: deprecation (#9740) 2025-02-13 20:39:51 +01:00