Pcornel
Automation · Automation Design

Parameters

Cheat sheet · https://pcornel.dk/topic.php?topic=5200

Back to the Topic

Answer

Parameters are named inputs that make one automation reusable for many cases, such as hostname, size or environment. Give them types, validation and defaults instead of editing the script each time.

Remember

  • Parameters make one job reusable for many cases.
  • Typed and validated parameters reject bad input early.
  • Defaults should be safe.

First checks

  • Parameter definitions with types and defaults — interface
  • <script> --help — documented parameters
  • Validation of parameters — safety

Verify in this order

caller → parameters → validated → execution

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5200

Confirmation

Confirm action

Continue?