community.general/plugins/connection
patchback[bot] f104fe3a58
[PR #8424/cee62a40 backport][stable-10] Proxmox remote pct connection (#9581)
Proxmox remote pct connection (#8424)

* First Revision (squashed)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Second Revision (squashed)

* implement data_in

* Removed quot()
There is no need for quoting, exec_command gets the command already quoted with shell from Ansible

* Use shell from self._shell

* Improved error handling

* updated docs

* Use Int for Container ID

* Updated docs to include detailed description for non root usage

* Fix ansible_user var in example

* Fix become method
We need to differentiate between become method used in Proxmox and the one inside the container.

* Implement review findings
- f-Strings
- lower() when input
- yaml indent
- consistent quotes
- use to_text()
- Enhanced examples
- Ansibullbot findings

* remove ssh cache

* Ensure we delete the tempfile

* use octal mode

* Use FileLock().lock_file

* ansibullbot findings

* refactor _connect()

* Update plugins/connection/pct_remote.py

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

* Apply suggestions from code review

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

* renamed plugin to proxmox_pct_remote

* Use ansible.builtin.ping as example

* added unit tests

* fixed bugs in close()

* catch invalid host key

* test invalid host key

* Added integration test

* cleanup

* setup test via ansible

* Revised notes based on review feedback

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

* gather_facts hint in example

* Update tests/integration/targets/connection_proxmox_pct_remote/aliases

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

* Fix FreeBSD, deactivate macOS

* Test and Fix: Hang on copy with empty content

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit cee62a4069)

Co-authored-by: Nils <31704359+mietzen@users.noreply.github.com>
2025-01-18 16:43:09 +01:00
..
chroot.py [PR #9442/ec585392 backport][stable-10] Docs: fix its vs. it's (#9458) 2024-12-29 14:13:18 +01:00
funcd.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
incus.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
iocage.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
jail.py [PR #9442/ec585392 backport][stable-10] Docs: fix its vs. it's (#9458) 2024-12-29 14:13:18 +01:00
lxc.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
lxd.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
proxmox_pct_remote.py [PR #8424/cee62a40 backport][stable-10] Proxmox remote pct connection (#9581) 2025-01-18 16:43:09 +01:00
qubes.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
saltstack.py [PR #9453/040cd0ca backport][stable-10] normalize docs in cache/connection plugins (#9462) 2024-12-29 14:12:55 +01:00
zone.py [PR #9442/ec585392 backport][stable-10] Docs: fix its vs. it's (#9458) 2024-12-29 14:13:18 +01:00