blob: 08657a21e055cea75f104a6998c3a27ed0f84ee2 [file] [log] [blame]
Dennis Dmitriev47433912018-03-25 04:24:59 +03001{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import HOSTNAME_CMP01 with context %}
3{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import HOSTNAME_CMP02 with context %}
4{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import HOSTNAME_GTW01 with context %}
5{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import LAB_CONFIG_NAME with context %}
6{% from 'cookied-mcp-pike-dvr-ssl/underlay.yaml' import DOMAIN_NAME with context %}
7
Dennis Dmitriev0f272312018-10-01 13:29:40 +03008{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.com/salt-models/mcp-virtual-lab') %}
Dennis Dmitriev47433912018-03-25 04:24:59 +03009# 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='\*') }}
Dennis Dmitriev47433912018-03-25 04:24:59 +030018{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
19
20{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
21
Dennis Dmitriev47433912018-03-25 04:24:59 +030022{{ SHARED.MACRO_GENERATE_INVENTORY() }}
23
24{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
25
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030026{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
27
28{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}
29
Dennis Dmitriev47433912018-03-25 04:24:59 +030030- description: Hack gtw node
31 cmd: salt '{{ HOSTNAME_GTW01 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.110/24 dev ens4; ip addr flush dev ens4";
32 node_name: {{ HOSTNAME_CFG01 }}
33 retry: {count: 1, delay: 10}
34 skip_fail: false
35
36- description: Hack cmp01 node
37 cmd: salt '{{ HOSTNAME_CMP01 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4";
38 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 1, delay: 10}
40 skip_fail: false
41
42- description: Hack cmp02 node
43 cmd: salt '{{ HOSTNAME_CMP02 }}' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4";
44 node_name: {{ HOSTNAME_CFG01 }}
45 retry: {count: 1, delay: 10}
46 skip_fail: false