blob: 3c37187f13e27588ab30fb91186ef3048d343021 [file] [log] [blame]
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03001{% from 'virtual-mcp11-k8s-contrail/underlay.yaml' import HOSTNAME_CFG01 with context %}
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +03002{% from 'virtual-mcp11-k8s-contrail/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'virtual-mcp11-k8s-contrail/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03004
5{% 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
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03007
Victor Ryzhenkin66593e92017-11-28 19:38:33 +04008
9{% set ENABLE_COMPUTES_SELF_REGISTER = os_env('ENABLE_COMPUTES_SELF_REGISTER', '') %}
10# Different templates using this mechanism.
11
Sergii Golovatiuk50f91892017-08-04 18:11:06 +020012{% import 'shared-salt.yaml' as SHARED with context %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030013
Dennis Dmitriev492813e2017-08-09 15:08:58 +030014{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
Sergii Golovatiuk50f91892017-08-04 18:11:06 +020015
Dennis Dmitriev492813e2017-08-09 15:08:58 +030016{{ SHARED.MACRO_CLONE_RECLASS_MODELS(IS_CONTRAIL_LAB=true) }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030017
Dennis Dmitriev492813e2017-08-09 15:08:58 +030018{{ 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"') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030019
Dennis Dmitriev492813e2017-08-09 15:08:58 +030020{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030021
Dennis Dmitriev492813e2017-08-09 15:08:58 +030022{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030023
Victor Ryzhenkin9cc824c2017-10-12 19:02:23 +040024{{ SHARED.ADJUST_K8S_OPTS() }}
25
Dennis Dmitriev257a9382018-02-15 04:00:46 +020026{{ SHARED.ADJUST_SL_OPTS(OVERRIDES_FILENAME='/srv/salt/reclass/classes/cluster/' + SHARED.CLUSTER_NAME + '/stacklight/server.yml') }}
27
Victor Ryzhenkin66593e92017-11-28 19:38:33 +040028{%- if ENABLE_COMPUTES_SELF_REGISTER != '' %}
29{{ SHARED.REGISTER_COMPUTE_NODES() }}
30{%- endif %}
31
Dennis Dmitriev492813e2017-08-09 15:08:58 +030032{{ SHARED.MACRO_GENERATE_INVENTORY() }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030033
Dennis Dmitriev492813e2017-08-09 15:08:58 +030034{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}