blob: c62817b3a7e1a6fa068771ea5cd75bfdc73e7b12 [file] [log] [blame]
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02001{% from 'virtual-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-pike-ovs-dpdk/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'virtual-pike-ovs-dpdk/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02004
Dennis Dmitriev0f272312018-10-01 13:29:40 +03005{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.com/salt-models/mcp-virtual-lab') %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02006# Other salt model repository parameters see in shared-salt.yaml
7
8{% import 'shared-salt.yaml' as SHARED with context %}
9
10{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
11
12{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
13
Vladimir Jigulinf557c562018-07-30 18:30:09 +040014{{ 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" "backupninja" "runtest" "logrotate"') }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020015
16{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
17
18{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
19
20{{ SHARED.MACRO_GENERATE_INVENTORY() }}
21
Dennis Dmitrievcf777802018-02-14 18:09:55 +020022- description: Enable hugepages on cmp nodes
23 cmd: salt 'cmp*' cmd.run "apt-get install -y hugepages; echo 2048 > /proc/sys/vm/nr_hugepages";
24 node_name: {{ HOSTNAME_CFG01 }}
25 retry: {count: 1, delay: 10}
26 skip_fail: false
27
Tatyana Leontovich56005da2017-12-11 13:16:51 +020028{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
29
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030030{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020031
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030032{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}