proxmox: create a common base (#1331) (#1378)

* proxmox: create a common base

Add a doc_fragment to share the documentation regarding authentication
parameters (api_host, api_user, api_password, api_token_id,
api_token_secret as well as the lone validate_certs).

Add a module_utils to hold common code such as the argument spec (again
related to authentication paramters), a helper function to convert from
Proxmox boolean representation to python and the base class
ProxmoxAnsible.
For now it only handles the connection to Proxmox VE API but more can be
added in the future.

To check if everything is well in place add three new modules:
proxmox_{domain,group,user}_info.

And finaly tests these new modules.

* Apply suggestions from code review

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

* Add tests/integration/targets/proxmox/aliases

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

Co-authored-by: Tristan Le Guern <tleguern@bouledef.eu>
This commit is contained in:
patchback[bot] 2020-11-24 17:56:50 +01:00 committed by GitHub
parent b1d1391be5
commit d5c24e67e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 784 additions and 0 deletions

View file

@ -0,0 +1 @@
cloud/misc/proxmox_user_info.py