McTwist / vmctrl

Control virtual units through commands in input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add groups

McTwist opened this issue · comments

While this is outside of the scope of what could be used for this type of cli tool, it would certainly be interesting to add support to store groups of units in a config file which it can then used to do certain tasks for. That is, the group name takes precedence when using a name in any command, and all in that group will be issued that command.

Optionally, if the labels could be used, that would make a great integration with the ui. Resource pools cannot be used as those are only used for permission handling. pveum is also pretty limited on what it can be used for(We cannot even retrieve a list of units).

The config file should be automatically reloaded when saved, but the daemon should output if it fails to reload it.

Make use of watchdog for watching events in the file system.
Add configparser for the config file.

Since tags was added, that is the candidate to group together units and start/stop them.