blob: ae2e2350b971258555c72ae0b0b734cf577ea904 [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
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 Dmitrievb3b37492018-07-08 21:23:00 +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_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
Dennis Dmitriev44f6db22018-10-31 16:07:56 +020021- description: "Workaround to avoid reboot cmp nodes: apply patch to bring OVS interfaces UP (PROD-24343)"
Dmitry Tyzhnenko41825c52018-10-24 16:41:19 +030022 cmd: |
Dennis Dmitriev44f6db22018-10-31 16:07:56 +020023 set -ex
24 git clone https://gerrit.mcp.mirantis.com/salt-formulas/linux /root/salt-formula-linux
25 cd /root/salt-formula-linux
26 git fetch https://gerrit.mcp.mirantis.com/salt-formulas/linux refs/changes/32/29432/11 && git checkout FETCH_HEAD
27 cp -r /root/salt-formula-linux/linux/ /srv/salt/env/prd/
Dennis Dmitrievb3b37492018-07-08 21:23:00 +030028 node_name: {{ HOSTNAME_CFG01 }}
29 retry: {count: 1, delay: 10}
30 skip_fail: false
31
Dennis Dmitrievb3b37492018-07-08 21:23:00 +030032{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
33
34{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}