canonical / terraform-provider-maas

Terraform MAAS provider
Mozilla Public License 2.0
64 stars 45 forks source link

Testing and State Transition #197

Open sempervictus opened 4 months ago

sempervictus commented 4 months ago

For workflows which recycle machines - HPC and the like, it's handy to create, run, and operate based on the return values of both commissioning and test scripts. Defining scripts as resources and then assigning those to a machine resource for execution when its state goes to commissioning or testing would permit the next iteration using a selector of ready/tested machines to do one thing while the cohort of test/script failures would be run through a different branch of logic.

Rough requirements:

  1. script resource with commissioning/test type and contents (preferably validating MaaS' markup syntax in the header comments)
  2. a field assigning scripts to machine resources
  3. either a resource similar to instance or a state mechanism of some kind for machine to permit testing/commissioning/marking-broken (presumably to end an autonomous workflow and make a human handle it)
github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.