Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 1 | {% from 'physical-mcp-ocata-offline-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | # {% from 'physical-mcp-ocata-offline-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %} |
| 3 | # {% from 'physical-mcp-ocata-offline-ovs/underlay.yaml' import DOMAIN_NAME with context %} |
| 4 | |
| 5 | # Environment model name stored in https://github.com/Mirantis/tcp-qa/tree/master/tcp_tests/environments |
| 6 | # {% set ENVIRONMENT_MODEL_NAME = os_env('ENVIRONMENT_MODEL_NAME','physical-mcp-ocata-offline-ovs') %} |
| 7 | |
| 8 | # {% import 'shared-salt.yaml' as SHARED with context %} |
| 9 | |
| 10 | - description: Wait while a salt-minion is started |
| 11 | cmd: timeout 90s bash -c 'while ! systemctl is-active salt-minion; do sleep 10; echo salt-minion isnt run; done' |
| 12 | node_name: {{ HOSTNAME_CFG01 }} |
| 13 | retry: {count: 1, delay: 5} |
| 14 | skip_fail: false |
| 15 | |
| 16 | - description: Refresh pillars on master node |
| 17 | cmd: sleep 90; salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.refresh_pillar |
| 18 | node_name: {{ HOSTNAME_CFG01 }} |
| 19 | retry: {count: 1, delay: 5} |
| 20 | skip_fail: false |
| 21 | |
| 22 | - description: Sync all salt resources on master node |
| 23 | cmd: salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.sync_all && sleep 5 |
| 24 | node_name: {{ HOSTNAME_CFG01 }} |
| 25 | retry: {count: 1, delay: 5} |
| 26 | skip_fail: false |