jay7x / puppet-lima

Manage Lima VMs with Puppet Bolt
Apache License 2.0
1 stars 0 forks source link

Stop-and-delete a cluster in a single plan call #9

Closed jay7x closed 4 months ago

jay7x commented 1 year ago

Quite frequently I'm stopping a cluster to delete it after. So it'd be nice to have ability to stop a cluster and delete it in the same plan call. There are options:

  1. Add delete=true parameter to the lima::cluster::stop plan
  2. Add stop=true parameter to the lima::cluster::delete plan
  3. Implement both options above
jay7x commented 1 year ago

To be consistent with stop => restart case I'd say it should be option (2). I.e. use stop=true parameter of the lima::cluster::delete plan. If one want to delete a cluster then calling the lima::cluster::delete plan sounds more logical.