blob: 5db2f58aa32de2bd0a05766cd97cbbd0fe03d7bd [file] [log] [blame]
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03001{% from 'virtual-mcp11-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +03002{% from 'virtual-mcp11-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'virtual-mcp11-ovs/underlay.yaml' import DOMAIN_NAME with context %}
Sergii Golovatiuk50f91892017-08-04 18:11:06 +02004
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03005{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %}
Sergii Golovatiuk50f91892017-08-04 18:11:06 +02006# Other salt model repository parameters see in shared-salt.yaml
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03007
Sergii Golovatiuk50f91892017-08-04 18:11:06 +02008{% import 'shared-salt.yaml' as SHARED with context %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03009
Dennis Dmitriev492813e2017-08-09 15:08:58 +030010{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030011
Dennis Dmitriev492813e2017-08-09 15:08:58 +030012{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030013
ibumarskov297c53c2018-02-19 12:24:44 +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"') }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030015
Dennis Dmitriev492813e2017-08-09 15:08:58 +030016{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030017
Dennis Dmitriev492813e2017-08-09 15:08:58 +030018{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030019
Dennis Dmitriev492813e2017-08-09 15:08:58 +030020{{ SHARED.MACRO_GENERATE_INVENTORY() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030021
Dennis Dmitriev492813e2017-08-09 15:08:58 +030022{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030023
Tatyana Leontoviche6e344f2017-10-05 13:01:01 +030024- description: WR run linux state to fix hosts
Tatyana Leontovich80635fa2017-10-05 13:29:37 +030025 cmd: salt "cfg*" state.sls linux
Tatyana Leontoviche6e344f2017-10-05 13:01:01 +030026 node_name: {{ HOSTNAME_CFG01 }}
27 retry: {count: 1, delay: 10}
Tatyana Leontovich80635fa2017-10-05 13:29:37 +030028 skip_fail: true
Tatyana Leontoviche6e344f2017-10-05 13:01:01 +030029
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030030- description: Hack gtw node
Tatyana Leontovichcc864bd2017-10-04 18:35:44 +030031 cmd: salt 'gtw*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.94/24 dev ens4; ip addr flush dev ens4";
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030032 node_name: {{ HOSTNAME_CFG01 }}
33 retry: {count: 1, delay: 10}
34 skip_fail: false
35
36- description: Hack cmp01 node
Tatyana Leontovichcc864bd2017-10-04 18:35:44 +030037 cmd: salt 'cmp01*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.95/24 dev ens4; ip addr flush dev ens4";
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030038 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 1, delay: 10}
40 skip_fail: false
41
42- description: Hack cmp02 node
Tatyana Leontovichcc864bd2017-10-04 18:35:44 +030043 cmd: salt 'cmp02*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.96/24 dev ens4; ip addr flush dev ens4";
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030044 node_name: {{ HOSTNAME_CFG01 }}
45 retry: {count: 1, delay: 10}
Sergii Golovatiuk50f91892017-08-04 18:11:06 +020046 skip_fail: false