Show and Tell: Script parameters; RAD perspectives and go-forward

Today, Lee introduced some new scripting parameters he has added to MAAS; meanwhile, Bill gave a summary of RAD, how we came to undertake the project, and where we plan to go in the near future.

Please leave your questions and comments below. Enjoy!

Sample script used to demonstrate the new string, password, and choice parameter types added in MAAS 2.9.

#!/bin/bash -ex
#
# --- Start MAAS 1.0 script metadata ---
# name: string-password-choice
# title: Test string, password, and choice parameters
# description: Test string, password, and choice parameters
# parameters:
#   string:
#     type: string
#   string_advanced:
#     type: string
#     required: True
#     default: test
#     min: 3
#     max: 10
#     argument_format: --string-adv={input}
#   password:
#     type: password
#   password_advanced:
#     type: string
#     required: True
#     default: test
#     min: 3
#     max: 10
#     argument_format: --password-adv={input}
#   choice:
#     type: choice
#     choices:
#       - a
#       - b
#       - c
#   choice_advanced:
#     type: choice
#     choices:
#       - a
#       - b
#       - c
#     default: b
#     required: True
#     argument_format: --choice-adv={input}
# --- End MAAS 1.0 script metadata ---

echo $@
1 Like