blob: 6a24020a5bff268ffab9210b7cf4ef547e572189 [file] [log] [blame]
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02001{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CMP01 with context %}
3{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CMP02 with context %}
4{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_GTW01 with context %}
5{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import LAB_CONFIG_NAME with context %}
6{% from 'cookied-mcp-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_MASTER() }}
14
15{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
16
Vladimir Jigulinf557c562018-07-30 18:30:09 +040017{{ SHARED.MACRO_CONFIGURE_RECLASS(FORMULA_SERVICES='"linux" "reclass" "salt" "openssh" "ntp" "git" "nginx" "collectd" "sensu" "heka" "sphinx" "keystone" "mysql" "grafana" "haproxy" "rsyslog" "horizon" "prometheus" "telegraf" "elasticsearch" "fluentd" "runtest" "maas" "jenkins" "glusterfs" "backupninja" "auditd" "logrotate"') }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020018
19{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
20
21{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
22
23{{ SHARED.MACRO_GENERATE_INVENTORY() }}
24
Dennis Dmitriev90877b12018-03-21 21:52:51 +020025{{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }}
26
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020027- description: Enable hugepages on cmp nodes
28 cmd: salt 'cmp*' cmd.run "apt-get install -y hugepages; echo 2048 > /proc/sys/vm/nr_hugepages";
29 node_name: {{ HOSTNAME_CFG01 }}
30 retry: {count: 1, delay: 10}
31 skip_fail: false
32
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020033{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
34
Dennis Dmitrievc1e95c22018-03-29 03:35:43 +030035- description: "Workaround to avoid reboot cmp nodes: bring OVS interfaces UP"
36 cmd: |
37 salt 'cmp*' cmd.run "ifup br-prv";
38 salt 'cmp*' cmd.run "ip l set up br-floating";
39 node_name: {{ HOSTNAME_CFG01 }}
40 retry: {count: 1, delay: 10}
41 skip_fail: false
42
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030043{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020044
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030045{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}