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

* 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
..
action [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 () 2025-01-20 20:15:52 +01:00
become [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 () 2025-01-20 20:15:52 +01:00
cache [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 () 2025-01-20 20:15:52 +01:00
callback [PR #9583/81e22180 backport][stable-10] action/become/cache/callback: adjust import __future__ for Python3 () 2025-01-20 20:15:52 +01:00
connection [PR #9659/06df717b backport][stable-10] lxd_connection: Allow non-root users to connect to an instance () 2025-02-15 13:41:24 +01:00
doc_fragments [PR #9494/af011827 backport][stable-10] Keycloak modules retry request on authentication error, support refresh token parameter () 2025-01-26 15:43:41 +01:00
filter [PR #9565/f5c1b9c7 backport][stable-10] add json_patch, json_patch_recipe and json_diff filters () 2025-01-21 21:04:41 +01:00
inventory [PR #9651/fdd1331e backport][stable-10] Implement Add parameter hooks to inventory plugin iocage () 2025-02-11 22:23:42 +01:00
lookup [PR #9625/4e0de41a backport][stable-10] onepassword_doc: fix 1Password Connect support () 2025-02-10 22:04:24 +01:00
module_utils [PR #9729/7af5e158 backport][stable-10] Add FullPowerCycle to Power commands () 2025-02-11 22:23:51 +01:00
modules [PR #9733/085bcb22 backport][stable-10] profitbricks: deprecation () 2025-02-13 20:39:51 +01:00
plugin_utils [PR #9379/22035608 backport][stable-10] plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting () 2024-12-29 00:06:56 +01:00
test New Plugins () 2024-07-13 13:32:36 +02:00