Comment 4 for bug 1881916

Revision history for this message
Lee Trager (ltrager) wrote :

We've updated the docs to try and better explain how parameters work.

I had originally wanted to add various parameters that users could input such as selection fields, string, integers, runtime, etc however these provided difficult to implement UI for. I'll keep this bug open as a wish list as I do hope to add more parameter input types in the future.

In the meantime I've opened LP:1883333 which will allow you to create scripts which when selected will only run on systems with matching hardware. For example the script below will only run when select on hardware with a system SKU MY_SKU.

#!/usr/bin/env python3
# --- Start MAAS 1.0 script metadata ---
# name: sku-test
# tags: sku
# script_type: commissioning
# for_hardware: system_sku:MY_SKU
# --- End MAAS 1.0 script metadata ---

print("SKU matched!")