- salt -C "${NODE_MASK} or cfg01*" saltutil.sync_all
- salt -C "${NODE_MASK} or cfg01*" state.apply salt | \
- grep -Fq 'No response' && salt -C "${NODE_MASK} or cfg01*" state.apply salt
+ wait_for 3.0 'salt -C "cfg01*" state.apply linux'
+ if [[ "${LOCAL_VIRT_NODES}" =~ mas ]]; then
+ wait_for 3.0 'salt -C "mas*" test.ping'
+ else
+ wait_for 3.0 'for n in ${LOCAL_VIRT_NODES}; do salt -C \${n}.* test.ping; done'
+ fi
+ wait_for 3.0 'salt -C "E@^(${NODE_MASK}|cfg01).*" saltutil.sync_all'
+ wait_for 3.0 'salt -C "E@^(${NODE_MASK}|cfg01).*" state.apply salt'