I have done some googling and didn’t find any mention of tags on VMs/containers being a thing. ChatGPT told me that groups could be an option but I can only find info on cluster groups.
What I have in mind is integrations to Incus from downstream systems that would use this metadata e.g. to perform actions - add to monitoring, enroll in a CMDB, etc - specifically to provide information such as the application system/software, the environment (Dev, Prod), etc.
edit: the ability to use key/value attributes (application: kafka, owner: integration, env: prod) against instances would be preferable to simple, static string tags.
Thank you @abiosoft. That looks like exactly what I was looking for.
incus config metadata edit hostname
Then set via the properties map. I knew there had to be something like this.
edit: actually, looking a bit further, it appears that those properties might be limited in terms of what keys can be used. Perhaps there’s another area where arbitrary K/Vs can be set against instances?
The plan looked good, but I got this error. So it’s probably my understanding of the data model that is not right. I haven’t had time to get familiar with the Incus API yet, but will work on it.
incus_instance.ddclient: Modifying... [name=ddclient]
╷
│ Error: Failed to update instance "ddclient"
│
│ with incus_instance.ddclient,
│ on ddclient.tf line 10, in resource "incus_instance" "ddclient":
│ 10: resource "incus_instance" "ddclient" {
│
│ Invalid config: Unknown configuration key: properties
╵
Am I correct in understanding that the only way to view these user.* config keys in the Incus web UI would be by switching to the YAML configuration view for an instance?
I think we probably would want them showing up on the instance page as User properties and then similarly in the configuration so they can be seen and set without having to use the YAML view.