Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #7485/68051774 backport][stable-8] [proxmox_vm_info] Add ability to retrieve config #7680

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Dec 4, 2023

This is a backport of PR #7485 as merged into main (6805177).

SUMMARY

Added ability to retrieve configuration for existing machines (current or pending). (I am trying to bootstrap Ignition cloud images and configuration info will help to configure network interfaces based on their MAC-addresses which are randomly generated on VM creation).

Light refactor of get_vms_from_nodes function (informative variable names).

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

proxmox_vm_info

ADDITIONAL INFORMATION

* feat: add ability to retrieve config

Light refactor of get_vms_from_nodes function.
Added ability to retrieve configuration for existing machines (current or pending).

* Add changelog fragment

* Add changelog fragment (newline missed)

* Update changelogs/fragments/7485-proxmox_vm_info-config.yml

Co-authored-by: Felix Fontein <[email protected]>

* Apply suggestions from code review

Co-authored-by: Felix Fontein <[email protected]>

* Replaced two bool options with one three-state option

* Module args for the three-state option

* Remove trailing newline

* Make use of dict instead of list. Fix uncalled 'get config for lxc'.

* Sanity tests

* A couple of unit tests fixed

* Unit tests fixed

* Unit tests for p2.7 fixed. Test for config parameter added.

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 6805177)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests unit tests/unit needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Dec 4, 2023
@felixfontein felixfontein merged commit 2dd964c into stable-8 Dec 4, 2023
124 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-8/68051774d8ce602273e7ee3ab41760d3c0a6d158/pr-7485 branch December 4, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor plugins plugin (any type) tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants