1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/integration/targets
patchback[bot] ad5482f63d
Add proxmox_nic module (#2449) (#2502)
* Add proxmox_nic module

Add proxmox_nic module to manage NIC's on Qemu(KVM) VM's in a Proxmox VE
cluster.
Update proxmox integration tests and add tests for proxmox_nic module.

This partially solves https://github.com/ansible-collections/community.general/issues/1964#issuecomment-790499397
and allows for adding/updating/deleting network interface cards after
creating/cloning a VM.

The proxmox_nic module will keep MAC-addresses the same when updating a
NIC. It only changes when explicitly setting a MAC-address.

* Apply suggestions from code review

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

* Add check_mode and implement review comments

- check_mode added
- some documentation updates
- when MTU is set, check if the model is virtio, else fail
- trunks can now be provided as list of ints instead of vlanid[;vlanid...]

* Make returns on update_nic and delete_nic more readable

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

* Increase readability on update_nic and delete_nic

* Implement check in get_vmid

- get_vmid will now fail when multiple vmid's are returned as proxmox
  doesn't guarantee uniqueness
- remove an unused import
- fix a typo in an error message

* Add some error checking to get_vmid

- get_vmid will now return the error message when proxmoxer fails
- get_vmid will return the vmid directly instead of a list of one
- Some minor documentation updates

* Warn instead of fail when setting mtu on unsupported nic

- When setting the MTU on an unsupported NIC model (virtio is the only
  supported model) this module will now print a warning instead of
  failing.
- Some minor documentation updates.

* Take advantage of proxmox_auth_argument_spec

Make use of proxmox_auth_argument_spec from plugins/module_utils/proxmox.py
This provides some extra environment fallbacks.

* Add blank line to conform with pep8

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

Co-authored-by: Kogelvis <github@ar-ix.net>
2021-05-14 09:47:39 +02:00
..
aix_devices Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
aix_filesystem Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
alternatives Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
apache2_module Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
archive archive - created an integration test that archives broken links (#2063) 2021-03-21 09:51:07 +01:00
callback YAML callback: do not remove non-ASCII Unicode from multi-line string output (#1522) 2020-12-22 09:24:20 +01:00
callback_diy YAML callback: do not remove non-ASCII Unicode from multi-line string output (#1522) 2020-12-22 09:24:20 +01:00
callback_log_plays Fix callback_log_plays tests for current devel branch of ansible-base. (#1221) 2020-11-03 14:11:31 +01:00
callback_yaml YAML callback: do not remove non-ASCII Unicode from multi-line string output (#1522) 2020-12-22 09:24:20 +01:00
cloud_init_data_facts Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
connection Test of using FQCN for some builtin plugins (#660) 2020-07-16 12:24:04 +03:00
connection_chroot chroot: re-enable connection chroot tests (#1591) 2021-01-06 08:07:46 +01:00
connection_jail Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxc Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxd Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_posix Initial commit 2020-03-09 09:11:07 +00:00
consul Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
copr Temporarily disable copr integration tests due to failures with remote repository. (#2083) 2021-03-23 06:50:50 +01:00
cpanm cpanm - revamp module (#2218) 2021-04-18 10:55:47 +02:00
cronvar Disable docker tests (#1194) 2020-10-29 08:02:33 +01:00
deploy_helper Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
django_manage Adjusted django_manage integration test files to reduce ignore lines in sanity tests (#1805) 2021-02-13 12:09:54 +01:00
dpkg_divert Disable docker tests (#1194) 2020-10-29 08:02:33 +01:00
etcd3 Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
filesize new module: filesize - create or resize a file, given its size (#2232) 2021-04-19 07:04:29 +02:00
filesystem module filesystem: partially fix idempotency issue #1457 (resizefs) (#1478) 2021-02-03 07:54:04 +01:00
filter_dict Add dict filter (#2171) 2021-04-08 07:50:28 +02:00
filter_dict_kv Add filter dict_kv (#1264) 2020-11-24 05:41:18 +01:00
filter_from_csv New Filter plugin from_csv (#2037) 2021-03-21 13:21:54 +01:00
filter_hashids New filter plugins: hashids_encode and hashids_decode (#2244) 2021-04-17 20:00:03 +02:00
filter_jc Add macOS 11.1 tests (#1619) 2021-01-18 10:52:56 +00:00
filter_json_query Add macOS 11.1 tests (#1619) 2021-01-18 10:52:56 +00:00
filter_list Added integration tests for target filter_list (#1477) 2020-12-12 17:21:29 +01:00
filter_path_join_shim Add path_join compatibility shim (#2172) 2021-04-08 07:49:57 +02:00
filter_random_mac Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_time Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_version_sort Add version_sort filter to properly sort list of versions (#1916) 2021-02-27 17:42:45 +01:00
flatpak Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
flatpak_remote Disable flatpack_remote test due to expired key. (#1862) 2021-02-20 10:20:23 +01:00
gandi_livedns Add gandi_livedns module (#328) 2021-03-21 11:25:24 +01:00
gem Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
git_config git_config - fixed bug with scope file (#2125) 2021-03-30 08:24:08 +02:00
github_issue Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_deploy_key Feature/gitlab deploykey updkey (#1661) 2021-02-05 07:30:05 +01:00
gitlab_group added description parameter to create request (#1196) 2020-11-11 13:33:38 +01:00
gitlab_group_members Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group_variable Gitlab variables pagination (#968) 2020-10-09 14:59:00 +02:00
gitlab_hook Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project_members added gitlab_project_members (#1829) 2021-02-21 17:56:53 +01:00
gitlab_project_variable Add environment scope on gitlab project variables (#1197) 2021-01-18 07:54:43 +01:00
gitlab_runner Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_user Various fixes for updating existing gitlab users (#1724) 2021-02-09 10:29:13 +01:00
hg Make sure mercurial is also installed on OpenSuSE. (#1734) 2021-02-05 08:08:06 +01:00
homebrew Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_ecs_instance Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_evs_disk Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_network_vpc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_smn_topic Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_eip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_peering_connect Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_port Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_private_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_route Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_subnet Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
influxdb_user Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
ini_file ini_file - allows adding empty string as a value (#1972) 2021-03-08 06:57:40 +01:00
ipify_facts Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iptables_state Disable docker tests (#1194) 2020-10-29 08:02:33 +01:00
ipwcli_dns Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_create Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_extract Fix iso_extract tests for OpenSuSE (#1296) 2020-11-13 21:59:32 +01:00
java_cert Update java_cert module (#2008) 2021-04-07 19:31:58 +02:00
java_keystore java_keystore: overwrite instead of fail when password or alias does not match (#2262) 2021-04-19 06:59:52 +02:00
jboss Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
jira jira - module revamp -> moved code to class (#2208) 2021-04-26 13:09:19 +02:00
launchd Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ldap_search Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
listen_ports_facts Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
locale_gen Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_cartesian Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_dependent Add dependent lookup plugin (#2164) (#2490) 2021-05-11 20:14:30 +02:00
lookup_etcd3 Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
lookup_flattened Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_lmdb_kv Fix lmdb lookup tests (#842) 2020-08-29 10:47:28 +02:00
lookup_passwordstore Add yaml support to passwordstore. (#1681) 2021-01-28 09:24:28 +01:00
lvg Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
mail Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
mas Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_dns_reload Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_memstore_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_domain Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
module_helper ModuleHelper variables management (#2162) 2021-04-05 15:19:13 +02:00
monit Skip monit tests on RHEL. (#1615) 2021-01-11 21:59:41 +01:00
mqtt Add Ubuntu 20.04 to CI (#1658) 2021-01-22 20:43:39 +00:00
nios_a_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_aaaa_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_cname_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_dns_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_host_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_mx_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_naptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_ptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_srv_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_txt_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nomad Re-enable nomad tests (#1582) 2021-01-04 13:22:17 +05:30
npm npm: Add no_bin_links option (#2146) 2021-04-11 05:58:48 +02:00
odbc Remove postgresql content for 2.0.0 (#1355) 2020-11-24 09:01:50 +01:00
one_host Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
one_template opennebula: add one_template module (#2046) 2021-03-26 07:24:24 +01:00
osx_defaults Bugfix: Fix parsing array values from osx_defaults (#358) 2020-12-09 08:29:58 +03:00
pagerduty_user a new module pagerduty_user (#1025) 2020-11-26 13:22:35 +01:00
pam_limits pam_limits: adds check mode and diff mode (#1575) 2021-01-03 13:32:54 +01:00
pids pids module: Adding pattern and ignore_case options (#2280) 2021-04-21 12:45:09 +02:00
pkgutil pkgutil: add update all, check-mode, squashing and examples (#799) 2020-09-30 06:19:36 +02:00
prepare_nios_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
prepare_nuage_tests/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
prepare_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
proxmox Add proxmox_nic module (#2449) (#2502) 2021-05-14 09:47:39 +02:00
python_requirements_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
read_csv Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
redis_info Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
scaleway_compute Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_database_backup Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_image_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_lb Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_organization_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_snapshot_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_sshkey Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_user_data Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
script_inventory_foreman Fix more tests (#66) 2020-03-30 11:06:48 +02:00
sefcontext Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_client Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_handler Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_cron Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_epel/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_etcd3 Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_flatpak_remote Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_gnutar Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
setup_influxdb/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_java_keytool Add CI tests for java_cert and java_keystore (#1666) 2021-01-24 16:51:02 +01:00
setup_mosquitto Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_openldap Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_opennebula/vars Initial commit 2020-03-09 09:11:07 +00:00
setup_openssl Bump CI to FreeBSD 11.4, 12.2. (#1657) 2021-01-22 15:52:40 +01:00
setup_pkg_mgr/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_postgresql_db Add Fedora 34 to CI (#2384) (#2391) 2021-05-01 14:10:07 +02:00
setup_redis_replication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_constraints Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_tmp_dir Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_tls Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_wildfly_server Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
shutdown Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
spectrum_model_attrs spectrum_model_attrs: Initial commit (#1802) 2021-04-12 22:26:43 +02:00
ssh_config Fix CI (#1752) 2021-02-09 07:47:08 +01:00
supervisorctl Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
synchronize-buildah Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sysrc Clean up test entries from sysrc tests (#2330) (#2438) 2021-05-03 21:34:19 +02:00
timezone Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
ufw Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
wakeonlan Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
xattr Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
xfs_quota bugfix: xfs_quota feedback on projects not initialized has changed (#1596) 2021-02-27 08:38:24 +01:00
xml Bump CI to FreeBSD 11.4, 12.2. (#1657) 2021-01-22 15:52:40 +01:00
yarn Run tests with macOS 10.15. (#971) 2020-09-30 14:00:05 +02:00
yum_versionlock yum_versionlock: do lock/unlock concurrently (#1912) 2021-02-26 23:16:40 +01:00
zypper Try to fix zypper tests. (#1294) 2020-11-13 20:03:16 +01:00
zypper_repository zypper_repository: fix broken tests (#1449) 2020-12-05 16:02:01 +01:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00