blob: 51a2203099b8d832fa30c063294b394b4fa2a0d0 [file] [log] [blame]
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02001{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-mcp-pike-dvr/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'virtual-mcp-pike-dvr/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02004
5{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %}
6# 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
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020014{{ 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" "powerdns"') }}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020015
16{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
17
18{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
19
Dennis Dmitriev257a9382018-02-15 04:00:46 +020020{{ SHARED.ADJUST_SL_OPTS(OVERRIDES_FILENAME='/srv/salt/reclass/classes/cluster/' + SHARED.CLUSTER_NAME + '/stacklight/server.yml') }}
21
Tatyana Leontovich56005da2017-12-11 13:16:51 +020022{{ SHARED.MACRO_GENERATE_INVENTORY() }}
23
24{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
25
26- description: Hack gtw node
27 cmd: salt 'gtw*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.110/24 dev ens4; ip addr flush dev ens4";
28 node_name: {{ HOSTNAME_CFG01 }}
29 retry: {count: 1, delay: 10}
30 skip_fail: false
31
32- description: Hack cmp01 node
33 cmd: salt 'cmp01*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4";
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 10}
36 skip_fail: false
37
38- description: Hack cmp02 node
39 cmd: salt 'cmp02*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4";
40 node_name: {{ HOSTNAME_CFG01 }}
41 retry: {count: 1, delay: 10}
42 skip_fail: false