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

add description and hookscript parameters to proxmox LXC container #245

Merged

Conversation

Links2004
Copy link
Contributor

SUMMARY

adding missing options for the Proxmox LXC container.

  • hookscript
  • description
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

proxmox

ADDITIONAL INFORMATION

no big change only added 2 new parameters.
example:

- proxmox:
    vmid: 100
    node: uk-mc02
    api_user: root@pam
    api_password: 1q2w3e
    api_host: node1
    password: 123456
    hostname: example.org
    ostemplate: 'local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.gz'
    hookscript: 'local:snippets/vm_hook.sh'
    description: created with ansible

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added affects_2.10 feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor labels Apr 28, 2020
@ansibullbot
Copy link
Collaborator

The test ansible-test sanity --test pep8 [explain] failed with 2 errors:

plugins/modules/cloud/misc/proxmox.py:540:29: E128: continuation line under-indented for visual indent
plugins/modules/cloud/misc/proxmox.py:541:29: E128: continuation line under-indented for visual indent

click here for bot help

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR community_review and removed community_review ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Apr 28, 2020
Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansibullbot ansibullbot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR and removed community_review labels Apr 28, 2020
Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also would be good to have examples of using these parameters in the EXAMPLES block

plugins/modules/cloud/misc/proxmox.py Outdated Show resolved Hide resolved
plugins/modules/cloud/misc/proxmox.py Outdated Show resolved Hide resolved
@Andersson007
Copy link
Contributor

i've changed the format of current examples #248 to correspond to best practices

@Links2004
Copy link
Contributor Author

master merged
changelog fragment and example added

@Links2004 Links2004 requested a review from Andersson007 April 28, 2020 19:18
@ansibullbot
Copy link
Collaborator

@Links2004 this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibullbot ansibullbot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Apr 28, 2020
@ansibullbot
Copy link
Collaborator

The test ansible-test sanity --test ansible-doc [explain] failed with the error:

Command "ansible-doc -t module community.general.proxmox" returned exit status 1.
>>> Standard Error
ERROR! module community.general.proxmox missing documentation (or could not parse documentation): mapping keys are not allowed in this context
  in "<unicode string>", line 133, column 11

The test ansible-test sanity --test validate-modules [explain] failed with 12 errors:

plugins/modules/cloud/misc/proxmox.py:0:0: doc-choices-do-not-match-spec: Argument 'state' in argument_spec defines choices as (['present', 'absent', 'stopped', 'started', 'restarted']) but documentation defines choices as ([])
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'cores' in argument_spec defines default as (1) but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'cpus' in argument_spec defines default as (1) but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'cpuunits' in argument_spec defines default as (1000) but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'disk' in argument_spec defines default as ('3') but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'memory' in argument_spec defines default as (512) but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'state' in argument_spec defines default as ('present') but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'storage' in argument_spec defines default as ('local') but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-default-does-not-match-spec: Argument 'timeout' in argument_spec defines default as (30) but documentation defines default as (None)
plugins/modules/cloud/misc/proxmox.py:0:0: doc-required-mismatch: Argument 'api_host' in argument_spec is required, but is not documented as being required
plugins/modules/cloud/misc/proxmox.py:0:0: doc-required-mismatch: Argument 'api_user' in argument_spec is required, but is not documented as being required
plugins/modules/cloud/misc/proxmox.py:145:11: documentation-syntax-error: DOCUMENTATION is not valid YAML

The test ansible-test sanity --test yamllint [explain] failed with 2 errors:

plugins/modules/cloud/misc/proxmox.py:132:11: unparsable-with-libyaml: None - mapping keys are not allowed in this context
plugins/modules/cloud/misc/proxmox.py:145:11: error: DOCUMENTATION: syntax error: mapping keys are not allowed here (syntax)

click here for bot help

@Links2004 Links2004 force-pushed the proxmox_description branch from cb716d7 to 1f0dd2e Compare April 28, 2020 19:27
@ansibullbot ansibullbot removed merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Apr 28, 2020
Copy link
Contributor

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Andersson007 Andersson007 removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Apr 29, 2020
@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Apr 29, 2020
@Andersson007
Copy link
Contributor

I'm not a user of the module, @UnderGreen could you look at the changes please?

@Andersson007 Andersson007 removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Apr 29, 2020
@Links2004
Copy link
Contributor Author

Any updates or change to get this merged?

@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label May 16, 2020
@felixfontein
Copy link
Collaborator

@UnderGreen @joshainglis @karmab could you please take a look?

@Andersson007 Andersson007 merged commit cd5e3e2 into ansible-collections:master May 18, 2020
@Andersson007
Copy link
Contributor

@Links2004 thanks for the contribution!
@felixfontein thanks for reviewing!

@Andersson007
Copy link
Contributor

merged #245 into master

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 new_contributor Help guide this first time contributor stale_ci CI is older than 7 days, rerun before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants