this series lets users add tags to guest configs these do not have any concrete meaning but are intended to be used by management software such as config management systems
this is the basic implementation of this feature, in the next step i want to do: * get the tags in the /cluster/resources api this way we could show it in the gui, but more important, we can give the users a list of available tags to choose from in the selector * maybe make the colors customizable, e.g. in the datacenter.cfg where an admin could give specific colors to a certain tag for instance: tagcolors: production=255,255,0,1 in rgba values, we could query that and use it in our 'hash' function if the string exists in the custom color map changes from v1: * slightly different format (use [a-z...] instead of \w) * add comment in JSONSchema * better commit message * add the tags to the status api call of guests (for gui) * show the tags in the gui * make the tags editable in the gui pve-common: Dominik Csapak (1): JSONSchema: add pve-tag format src/PVE/JSONSchema.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) qemu-server: Dominik Csapak (1): add 'tags' option PVE/API2/Qemu.pm | 1 + PVE/QemuServer.pm | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) pve-container: Dominik Csapak (1): add 'tags' option src/PVE/LXC.pm | 6 ++++++ src/PVE/LXC/Config.pm | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) pve-manager: Dominik Csapak (5): gui: add tag related helpers gui: add tags to guest status line gui: add TagSelector gui: add tag edit windows for guests gui: remove chrome/extjs workaround www/css/ext6-pve.css | 34 ++++++--- www/manager6/Makefile | 1 + www/manager6/Utils.js | 34 +++++++++ www/manager6/form/TagSelector.js | 117 +++++++++++++++++++++++++++++++ www/manager6/lxc/Config.js | 12 +++- www/manager6/lxc/Options.js | 13 ++++ www/manager6/qemu/Config.js | 11 ++- www/manager6/qemu/Options.js | 13 ++++ 8 files changed, 221 insertions(+), 14 deletions(-) create mode 100644 www/manager6/form/TagSelector.js -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel