Modules: add wait_for_machine_status function
* Currently, there is no way to wait for deployment\
commissioning\etc procedure done. Lets add simple function,
which will "sleep" salt state call, till any maas node came to
requested state.
- wait_for_ready.sls: predefined state, which wait all defined in
salt::maas::region::machines to be in "ready"(commissioning done) state
- wait_for_deployed.sls: predefined state, which wait all defined in
salt::maas::region::machines to be in "deployed"(provision done) state
- Misc: move STATUS_NAME_DICT to global variable
Change-Id: I5faf2a5535b80c5e2fd7110abff2342c5010dad8
4 files changed