Feature #11733
open
Added by Alex Balk about 9 years ago.
Updated 8 months ago.
Description
We would like to be able to assign arbitrary tags to hosts, both in discovery and in the "all hosts" view. This would allow us to assign metadata to hosts for non-provisioning purposes. Consider the use case of a datacenter technician who's planning maintenance work in the datacenter. Being able to tag the hosts he will be working on (and later extract it via API for external reporting) would be extremely useful. The same is true for nodes in discovery, which might be allocated to a specific project or have additional metadata which is important (say, leased machines vs owned machines). Finally, being able to carry such data across the lifecycle of a host (discovered -> provisioned -> discovered -> ...) would be very useful as well.
- Project changed from Discovery to Foreman
would static grouping be an option? (e.g. statistical or via search define which hosts you would like to be in a group?)
an option would be to reuse katello host collection ?
If there's a way to look at a host and see all static groups it belongs to, sure (guess that's the same as tagging)
Also, it would be great to be able to search for "tags = leased and tags = disk_replaced and tags = warranty_expires" (or static groups = ... )
Another option i assume would be to add another field to the model called "tag", show it on the hosts table and being able to edit it and search by it.
Though I don't know if this idea goes well with the host unification feature?
- Category set to Host groups
Hey, made a small plugin that still needs major upgrade but you can start playing with it and see if the functionality is ok (the hammer_cli,api sections still needs to be made), https://github.com/alongoldboim/foreman_tags.
I would advise not to place on production foreman instance at first so you won't ruin anything.
The tag plugin looks good. Is there a way to add multiple tags per host and search for hosts based on tags? We would like to use this for reporting purposes (tag hosts with the group responsible for the host, what project it's for, etc).
Also available in: Atom
PDF