blob: 99dded3759cc46bba97cf5584dfac913fcf01d4a [file] [log] [blame]
Oleksii Butenko87d00c02018-09-05 19:11:17 +03001{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CMP01 with context %}
3{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CMP02 with context %}
4{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %}
5{% from 'cookied-mcp-queens-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %}
6{% from 'cookied-mcp-queens-ovs/underlay.yaml' import DOMAIN_NAME with context %}
7
8{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %}
9# Other salt model repository parameters see in shared-salt.yaml
10
11{% import 'shared-salt.yaml' as SHARED with context %}
12
13{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
14
15{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
16
Oleksii Butenkoa2fa0612018-09-20 12:01:44 +030017{{ SHARED.MACRO_CONFIGURE_RECLASS(FORMULA_SERVICES='\*') }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030018{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
19
20{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
21
22{{ SHARED.MACRO_GENERATE_INVENTORY() }}
23
24{{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }}
25
26{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
27
28{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
29
30{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}
31
32- description: Hack gtw node
33 cmd: salt '{{ HOSTNAME_GTW01 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.110/24 dev ens4; ip addr flush dev ens4";
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 10}
36 skip_fail: false
37
38- description: Hack cmp01 node
39 cmd: salt '{{ HOSTNAME_CMP01 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4";
40 node_name: {{ HOSTNAME_CFG01 }}
41 retry: {count: 1, delay: 10}
42 skip_fail: false
43
44- description: Hack cmp02 node
45 cmd: salt '{{ HOSTNAME_CMP02 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4";
46 node_name: {{ HOSTNAME_CFG01 }}
47 retry: {count: 1, delay: 10}
48 skip_fail: false