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 |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 23 | cmd: sleep 60; salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.sync_all && sleep 5 |
Dmitry Tyzhnenko | 5a5d8da | 2017-12-14 14:14:42 +0200 | [diff] [blame] | 24 | node_name: {{ HOSTNAME_CFG01 }} |
| 25 | retry: {count: 1, delay: 5} |
| 26 | skip_fail: false |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 27 | |
| 28 | - description: MaaS auth |
Dmitry Tyzhnenko | 468564a | 2018-08-23 16:39:06 +0300 | [diff] [blame^] | 29 | cmd: bash -x /var/lib/maas/.maas_login.sh |
Dmitry Tyzhnenko | b610afd | 2018-02-19 15:43:45 +0200 | [diff] [blame] | 30 | node_name: {{ HOSTNAME_CFG01 }} |
| 31 | retry: {count: 1, delay: 5} |
| 32 | skip_fail: false |
| 33 | |
| 34 | - description: Set upstream dns in MaaS |
| 35 | cmd: sleep 30; maas mirantis maas set-config name=upstream_dns value='10.10.0.15 8.8.8.8 8.8.4.4' |
| 36 | node_name: {{ HOSTNAME_CFG01 }} |
| 37 | retry: {count: 1, delay: 5} |
| 38 | skip_fail: false |
| 39 | |
| 40 | - description: Setup NTP |
| 41 | cmd: salt-call --hard-crash --state-output=mixed --state-verbose=False state.sls ntp.server |
| 42 | node_name: {{ HOSTNAME_CFG01 }} |
| 43 | retry: {count: 1, delay: 5} |
| 44 | skip_fail: false |
| 45 | |
| 46 | - description: Wait until salt is up |
| 47 | cmd: sleep 60 |
| 48 | node_name: {{ HOSTNAME_CFG01 }} |
| 49 | retry: {count: 1, delay: 5} |
| 50 | skip_fail: false |
| 51 | |