1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-06 18:15:54 +00:00
community.general/tests/integration/targets
Nils cee62a4069
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>
2025-01-18 16:27:06 +01:00
..
aix_devices More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
aix_filesystem Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
alerta_customer
alternatives
android_sdk Add android sdk module (#9236) 2024-12-20 22:55:12 +01:00
ansible_galaxy_install
apache2_module
apk
archive Fix bad expressions in tests (#7625) 2023-11-29 06:53:48 +01:00
btrfs_subvolume Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
callback Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
callback_default_without_diff
callback_diy Change CI group identifiers. (#5344) 2022-10-11 07:34:36 +02:00
callback_log_plays
callback_timestamp feat: implement timestamp callback plugin to show simple timestamp for each header (#8308) 2024-05-18 15:41:34 +02:00
callback_yaml Change CI group identifiers. (#5344) 2022-10-11 07:34:36 +02:00
cargo
cloud_init_data_facts
cmd_runner 10.0.0: CmdRunner: remove deprecated feature (#8928) 2024-09-26 12:01:36 +03:00
connection
connection_chroot
connection_incus
connection_jail Add more default license and copyright notices (#5087) 2022-08-08 08:44:19 +02:00
connection_lxc Add more default license and copyright notices (#5087) 2022-08-08 08:44:19 +02:00
connection_lxd Add more default license and copyright notices (#5087) 2022-08-08 08:44:19 +02:00
connection_posix Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
connection_proxmox_pct_remote
consul
copr
cpanm
cronvar Change CI group identifiers. (#5344) 2022-10-11 07:34:36 +02:00
decompress
deploy_helper Fix bad expressions in tests (#7625) 2023-11-29 06:53:48 +01:00
discord
django_command CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
django_manage CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
dnf_versionlock CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
dpkg_divert
ejabberd_user Finish updating CI (#8537) 2024-06-18 23:48:37 +02:00
etcd3
filesize
filesystem
filter_accumulate
filter_counter
filter_dict CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
filter_dict_kv
filter_from_csv
filter_from_ini
filter_groupby_as_dict
filter_hashids CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
filter_jc CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
filter_json_query CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
filter_keep_keys Feature. Add chapter 'Lists of dictionaries' to docsite (#8482) 2024-07-05 08:42:35 +02:00
filter_lists
filter_lists_mergeby
filter_path_join_shim
filter_random_mac CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
filter_remove_keys Feature. Add chapter 'Lists of dictionaries' to docsite (#8482) 2024-07-05 08:42:35 +02:00
filter_replace_keys
filter_reveal_ansible_type
filter_time
filter_to_ini
filter_unicode_normalize
filter_version_sort
flatpak Add support for state=latest to flatpak module (#8221) 2024-04-21 20:09:54 +02:00
flatpak_remote Add enabled parameter to flatpak_remote (#5926) 2023-02-25 22:40:17 +01:00
gandi_livedns Remove invalid cloud/gandi entry (#8725) 2024-08-07 16:31:12 +02:00
gem
git_config git_config: fix state=absent if value is present (#8452) 2024-06-06 07:35:54 +02:00
git_config_info
github_app_access_token
github_issue More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_branch More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_deploy_key
gitlab_group Change CI group identifiers. (#5344) 2022-10-11 07:34:36 +02:00
gitlab_group_access_token
gitlab_group_members
gitlab_group_variable More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_hook More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_instance_variable
gitlab_issue New module: gitlab_issue.py (#7539) 2023-12-02 20:55:19 +01:00
gitlab_label New module: gitlab_label (#7657) 2024-01-26 23:31:22 +01:00
gitlab_merge_request New module: gitlab_merge_request.py (#6605) 2023-06-15 06:55:49 +02:00
gitlab_milestone
gitlab_project More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_project_access_token
gitlab_project_badge
gitlab_project_members
gitlab_project_variable
gitlab_runner More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
gitlab_user More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
hg
homebrew Fix homebrew tap name handling (#9546) 2025-01-13 18:09:06 +01:00
homebrew_cask CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
homebrew_services homebrew: Add support for services functions (#8329) 2024-08-01 17:11:23 +02:00
homectl
htpasswd htpasswd: let changed reflect updated permissions (#9490) 2024-12-31 12:19:55 +13:00
hwc_ecs_instance Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
hwc_evs_disk
hwc_network_vpc
hwc_smn_topic
hwc_vpc_eip
hwc_vpc_peering_connect
hwc_vpc_port
hwc_vpc_private_ip
hwc_vpc_route
hwc_vpc_security_group
hwc_vpc_security_group_rule
hwc_vpc_subnet
ilo_redfish_command Adding CheckiLORebootStatus functionality to ilo_redfish_command (#6115) 2023-04-16 13:06:12 +02:00
ilo_redfish_config Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
ilo_redfish_info Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
influxdb_user CI: include has finally been removed in ansible-core devel (#6535) 2023-05-19 20:25:04 +02:00
ini_file
interfaces_file
ipify_facts CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
iptables_state
ipwcli_dns Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
iso_create
iso_customize CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
iso_extract CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
java_cert CI: devel supports Fedora 39, and no longer Fedora 38 (#7541) 2023-11-18 14:03:16 +01:00
java_keystore Skip java_cert and java_keystore tests on RHEL (#6995) 2023-07-23 22:32:57 +02:00
jboss
jira
kdeconfig
kernel_blacklist kernel_blacklist: bugfix (#7382) 2023-10-18 20:53:31 +02:00
keycloak_authz_authorization_scope
keycloak_authz_custom_policy
keycloak_authz_permission
keycloak_client Keycloak set client authentification flows by name (#8428) 2024-06-17 07:06:47 +02:00
keycloak_client_rolescope
keycloak_clientscope_type
keycloak_clientsecret_info
keycloak_clientsecret_regenerate
keycloak_component_info Keycloak components info (#7694) 2023-12-28 18:11:55 +01:00
keycloak_group
keycloak_group_rolemapping
keycloak_identity_provider
keycloak_realm_key
keycloak_role Inspq keycloak role composites (#6469) 2023-06-15 06:57:30 +02:00
keycloak_user Inspq keycloak user module (#6476) 2023-06-09 06:17:44 +02:00
keycloak_user_federation
keycloak_user_rolemapping
keycloak_userprofile
keyring Make sure all files have trailing newline (#5076) 2022-08-05 21:08:41 +02:00
launchd Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
ldap_inc Add module ldap inc (#9275) 2024-12-30 21:19:10 +01:00
ldap_search plugins/modules/ldap_search: Add support for multipage searches (#6648) 2023-06-15 07:19:55 +02:00
listen_ports_facts Add Debian Bookworm to CI (#6779) 2023-06-24 16:29:16 +02:00
locale_gen
lookup_cartesian CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
lookup_collection_version
lookup_dependent CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
lookup_dig
lookup_etcd3
lookup_flattened CI: remove skip/python2.6 from aliases (#7534) 2023-11-16 21:02:40 +01:00
lookup_lmdb_kv
lookup_merge_variables
lookup_passwordstore
lookup_random_pet
lookup_random_string
lookup_random_words
lvg
lvg_rename lvg_rename: New module to support VG renaming (#6721) 2023-06-19 13:11:03 +02:00
lvol
lxd_project
mail
mas
memset_dns_reload Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
memset_memstore_info
memset_server_info
memset_zone
memset_zone_domain Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
memset_zone_record Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
module_helper Change MH to use the module_utils.vardict.VarDict (#8226) 2024-04-24 08:07:29 +12:00
monit
mqtt
mssql_script mssql_script: allow non-returning SQL statements (#6457) 2023-05-07 21:58:38 +02:00
nomad
npm
odbc
one_host Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
one_image
one_image_info
one_template
one_vnet Add one_vnet module (#8769) 2024-09-08 14:24:33 +02:00
osx_defaults Fix osx_defaults tests (#7631) 2023-11-29 07:40:32 +01:00
pacman
pagerduty_user Make sure all files have trailing newline (#5076) 2022-08-05 21:08:41 +02:00
pam_limits Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
pamd
parted
pids
pipx
pipx_info Fix pipx tests (#8665) 2024-07-23 18:00:44 +02:00
pkgng
pkgutil Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
pnpm
proxmox 10.0.0: remove deprecated features (#8918) 2024-09-28 08:11:21 +03:00
proxmox_pool
proxmox_template [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster (#6757) 2023-07-02 21:48:26 +02:00
python_requirements_info
read_csv csv module utils: detect unicode BOM in content (#6662) 2023-06-15 07:19:16 +02:00
redis_info Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
rundeck More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
scaleway_compute Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
scaleway_container Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_container_info
scaleway_container_namespace
scaleway_container_namespace_info
scaleway_container_registry
scaleway_container_registry_info
scaleway_database_backup
scaleway_function Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_function_info
scaleway_function_namespace
scaleway_function_namespace_info
scaleway_image_info
scaleway_ip Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_ip_info Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
scaleway_lb Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_organization_info
scaleway_security_group
scaleway_security_group_info
scaleway_security_group_rule
scaleway_server_info
scaleway_snapshot_info
scaleway_sshkey Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_user_data Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
scaleway_volume Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
scaleway_volume_info Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
sefcontext
sensu_client
sensu_handler CI: include has finally been removed in ansible-core devel (#6535) 2023-05-19 20:25:04 +02:00
setup_cron Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
setup_docker setup_docker: handlers to stop service and remove requests (#7022) 2023-07-28 11:16:25 +02:00
setup_epel/tasks Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
setup_etcd3
setup_flatpak_remote
setup_gnutar Normalize bools in tests (#5996) 2023-02-15 22:55:23 +01:00
setup_influxdb/tasks
setup_java_keytool
setup_mosquitto CI: include has finally been removed in ansible-core devel (#6535) 2023-05-19 20:25:04 +02:00
setup_openldap Add module ldap inc (#9275) 2024-12-30 21:19:10 +01:00
setup_opennebula Make sure all files have trailing newline (#5076) 2022-08-05 21:08:41 +02:00
setup_openssl More true/false normalization (#6152) 2023-03-06 23:02:24 +01:00
setup_os_pkg_name/tasks
setup_pkg_mgr/tasks
setup_postgresql_db
setup_redis_replication
setup_remote_constraints
setup_remote_tmp_dir
setup_remote_tmp_dir_outside_tmp
setup_rundeck Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00
setup_snap CI: Add Fedora 41, Alpine 3.21, RHEL 9.5, FreeBSD 14.2 to CI for devel (#9552) 2025-01-08 18:53:13 +01:00
setup_tls Make compatible with newer reuse versions (#7858) 2024-01-17 23:17:07 +01:00
setup_wildfly_server
shutdown freebsd: shutdown -p ... on freebsd to power off machine (#7102) 2023-08-14 19:41:47 +02:00
snap
snap_alias snap_alias: fix regex expression when listing aliases (#6361) 2023-04-20 06:56:21 +02:00
spectrum_model_attrs Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
ssh_config Add dynamicforward option (#9192) 2024-12-02 20:18:56 +01:00
sudoers
supervisorctl
sysrc
systemd_creds_decrypt
systemd_creds_encrypt
terraform
test_a_module
test_ansible_type
test_fqdn_valid
timezone
ufw
wakeonlan
xattr
xfs_quota Fixes #5143: xfs_quota fails to initialize new project quotas (#6387) 2023-05-06 07:12:21 +02:00
xml
yarn
yum_versionlock
zypper
zypper_repository Add zypper_repository_info module (#8778) 2024-10-12 10:05:34 +02:00