blob: a2d8eb52481e8cbf61142f5c614aa122bc868749 [file] [log] [blame]
Dennis Dmitrievb3b37492018-07-08 21:23:00 +03001{% from 'cookied-cicd-pike-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-cicd-pike-dpdk/underlay.yaml' import HOSTNAME_CMP01 with context %}
3{% from 'cookied-cicd-pike-dpdk/underlay.yaml' import HOSTNAME_CMP02 with context %}
4{% from 'cookied-cicd-pike-dpdk/underlay.yaml' import HOSTNAME_GTW01 with context %}
5{% from 'cookied-cicd-pike-dpdk/underlay.yaml' import LAB_CONFIG_NAME with context %}
6{% from 'cookied-cicd-pike-dpdk/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_MINIONS() }}
14
15- description: Enable hugepages on cmp nodes
16 cmd: salt 'cmp*' cmd.run "apt-get install -y hugepages; echo 2048 > /proc/sys/vm/nr_hugepages";
17 node_name: {{ HOSTNAME_CFG01 }}
18 retry: {count: 1, delay: 10}
19 skip_fail: false
20
21- description: "Workaround for PROD-18834: Pre-install linux-headers package"
22 cmd: salt 'cmp*' cmd.run "apt-get install -y linux-headers-$(uname -r)";
23 node_name: {{ HOSTNAME_CFG01 }}
24 retry: {count: 1, delay: 10}
25 skip_fail: false
26
27- description: "Workaround for PROD-17975: Pre-install ovs packages to update alternatives to DPDK"
28 cmd: |
29 set -ex;
30 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@linux:system' state.sls linux.system.repo
31 salt 'cmp*' cmd.run "apt-get install -y openvswitch-switch openvswitch-switch-dpdk";
32 salt 'cmp*' cmd.run "service openvswitch-switch stop";
33 salt 'cmp*' cmd.run "rm -f /var/lib/openvswitch/*";
34 salt 'cmp*' cmd.run "update-alternatives --remove ovs-vswitchd /usr/lib/openvswitch-switch/ovs-vswitchd";
35 salt 'cmp*' cmd.run "service openvswitch-switch start";
36 node_name: {{ HOSTNAME_CFG01 }}
37 retry: {count: 1, delay: 10}
38 skip_fail: false
39
40{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
41
42{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}