Kathara icon indicating copy to clipboard operation
Kathara copied to clipboard

Add `excluded_machines` parameter to exclude devices from being deployed/undeployed

Open Skazza94 opened this issue 1 month ago • 0 comments

Currently, Kathará supports the selected_machines parameter, allowing deployment/undeployment of a specific set of devices.

However, there are situations where it would be useful to target all devices except for a few.

This issue proposes the introduction of a new parameter called excluded_machines. This parameter would function as the inverse of selected_machines, meaning that the command would apply to all devices except those specified in this set.

The excluded_machines works in alternative to selected_machines.

The parameter will be added in the following parts of the code:

  • [x] *Manager.deploy_lab
  • [x] Add unit tests for *Manager.deploy_lab
  • [x] *Manager.undeploy_lab
  • [x] Add unit tests for *Manager.undeploy_lab
  • [x] Add parameter --exclude in lstart, lrestart, and lclean
  • [x] Add unit tests for lstart, lrestart, and lclean commands
  • [x] Add parameter in docs

Skazza94 avatar May 14 '24 13:05 Skazza94