Feature #11733
openAssign tags to hosts
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.
Updated by Ohad Levy over 9 years ago
- 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 ?
Updated by Alex Balk over 9 years ago
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 = ... )
Updated by Alon Goldboim over 9 years ago
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?
Updated by Alon Goldboim about 9 years ago
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.
Updated by Marek Hulán almost 9 years ago
- Related to Feature #14308: Tagging Support for Hosts added
Updated by Jason Hane over 8 years ago
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).