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

Proxmox inventory keyed_groups #1503

Closed
filviu opened this issue Dec 17, 2020 · 8 comments
Closed

Proxmox inventory keyed_groups #1503

filviu opened this issue Dec 17, 2020 · 8 comments
Labels
bug This issue/PR relates to a bug has_pr inventory inventory plugin needs_info This issue requires further information. Please answer any outstanding questions needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly plugins plugin (any type)

Comments

@filviu
Copy link

filviu commented Dec 17, 2020

Would it be possible to add an option for keyed_groups ? Similar to the Hetzner Cloud plugin: https://docs.ansible.com/ansible/latest/collections/hetzner/hcloud/hcloud_inventory.html

This would allow for example to use notes to group hosts into arbitrary groups (I'm thinking prod, dmz, etc.) It would require some standard usage of the notes field maybe semicolon separated sets of label=value.

E.g.

keyed_groups:
  - key: notes.ansible_group
    prefix: proxmox

What do you think ?

COMPONENT NAME

community.general.proxmox

@ansibullbot
Copy link
Collaborator

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@silviuvulcan: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • ansible version
  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE/bug_report.md

click here for bot help

@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug needs_info This issue requires further information. Please answer any outstanding questions needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly needs_triage labels Dec 17, 2020
@felixfontein
Copy link
Collaborator

!component =plugins/inventory/proxmox.py

@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ilijamt
Copy link
Contributor

ilijamt commented Apr 24, 2021

This is possible now with #2180

@ansibullbot
Copy link
Collaborator

@filviu
Copy link
Author

filviu commented Apr 26, 2021

Great news! In case anybody stumbles upon this I couldn't find any GUI way to set tags, but you can set them using the command line:

# for LXC containers
pct set 100 --tags "tag1,tag2,tag3"
# for VMs
qm set 100 --tags "tag1,tag2,tag3"

@Ajpantuso
Copy link
Collaborator

Great news! In case anybody stumbles upon this I couldn't find any GUI way to set tags, but you can set them using the command line:

# for LXC containers
pct set 100 --tags "tag1,tag2,tag3"
# for VMs
qm set 100 --tags "tag1,tag2,tag3"

For QEMU guests it is also possible to set tags from ansible See #2000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug has_pr inventory inventory plugin needs_info This issue requires further information. Please answer any outstanding questions needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

5 participants