blob: 8faef2bb7aacce80d252ead3d96f1e4f8a98f91a [file] [log] [blame]
Dmitry Tyzhnenko5a5d8da2017-12-14 14:14:42 +02001{% 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 Tyzhnenkob610afd2018-02-19 15:43:45 +020023 cmd: sleep 60; salt-call --hard-crash --state-output=mixed --state-verbose=False saltutil.sync_all && sleep 5
Dmitry Tyzhnenko5a5d8da2017-12-14 14:14:42 +020024 node_name: {{ HOSTNAME_CFG01 }}
25 retry: {count: 1, delay: 5}
26 skip_fail: false
Dmitry Tyzhnenkob610afd2018-02-19 15:43:45 +020027
28- description: MaaS auth
Dmitry Tyzhnenko468564a2018-08-23 16:39:06 +030029 cmd: bash -x /var/lib/maas/.maas_login.sh
Dmitry Tyzhnenkob610afd2018-02-19 15:43:45 +020030 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