blob: a650b87b8f0f04ef4fe0bcc102104f5bad254ffa [file] [log] [blame]
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +03001{% from 'virtual-mcp11-k8s-calico/underlay.yaml' import HOSTNAME_CFG01 with context %}
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +03002{% from 'virtual-mcp11-k8s-calico/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'virtual-mcp11-k8s-calico/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +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 Leontovichc8b8ca22017-05-19 13:37:05 +03007
Victor Ryzhenkin66593e92017-11-28 19:38:33 +04008{% set ENABLE_COMPUTES_SELF_REGISTER = os_env('ENABLE_COMPUTES_SELF_REGISTER', '') %}
9# Different templates using this mechanism.
10
Sergii Golovatiuk50f91892017-08-04 18:11:06 +020011{% import 'shared-salt.yaml' as SHARED with context %}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020012
Dennis Dmitriev492813e2017-08-09 15:08:58 +030013{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020014
Dennis Dmitriev492813e2017-08-09 15:08:58 +030015{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020016
Dennis Dmitriev4c86ed52018-02-06 10:49:36 +020017{{ 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"') }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020018
Dennis Dmitriev492813e2017-08-09 15:08:58 +030019{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020020
Dennis Dmitriev492813e2017-08-09 15:08:58 +030021{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020022
Victor Ryzhenkin9cc824c2017-10-12 19:02:23 +040023{{ SHARED.ADJUST_K8S_OPTS() }}
24
Dennis Dmitriev257a9382018-02-15 04:00:46 +020025{{ SHARED.ADJUST_SL_OPTS(OVERRIDES_FILENAME='/srv/salt/reclass/classes/cluster/' + SHARED.CLUSTER_NAME + '/stacklight/server.yml') }}
26
Victor Ryzhenkin66593e92017-11-28 19:38:33 +040027{%- if ENABLE_COMPUTES_SELF_REGISTER != '' %}
28{{ SHARED.REGISTER_COMPUTE_NODES() }}
29{%- endif %}
30
Dennis Dmitriev492813e2017-08-09 15:08:58 +030031{{ SHARED.MACRO_GENERATE_INVENTORY() }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020032
Dennis Dmitriev492813e2017-08-09 15:08:58 +030033{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}