blob: 095c58a9e43bbcec01fdfd005a33a9f5e1994efb [file] [log] [blame]
Dennis Dmitrieveea5bb32017-09-03 23:20:54 +03001{% from 'cookied-mcp-ocata-dvr-vxlan/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-ocata-dvr-vxlan/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'cookied-mcp-ocata-dvr-vxlan/underlay.yaml' import DOMAIN_NAME with context %}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +03004
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# Name of the context file (without extension, that is fixed .yaml) used to render the Environment model
9{% set ENVIRONMENT_MODEL_INVENTORY_NAME = os_env('ENVIRONMENT_MODEL_INVENTORY_NAME','virtual-devops-mcp-ocata-sl2') %}
Dennis Dmitriev9f141af2017-09-28 17:21:01 +030010# Path to the context files used to render Cluster and Environment models
11{%- set CLUSTER_CONTEXT_NAME = 'salt-context-cookiecutter-openstack_ovs_dvr_vxlan.yaml' %}
Dennis Dmitrievccdc87a2017-09-28 17:43:54 +030012{%- set ENVIRONMENT_CONTEXT_NAMES = ['salt-context-environment.yaml'] %}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030013
14{% import 'shared-salt.yaml' as SHARED with context %}
15
16{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
17
Dennis Dmitriev9f141af2017-09-28 17:21:01 +030018{{ SHARED.MACRO_GENERATE_COOKIECUTTER_MODEL() }}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030019
Dennis Dmitriev9f141af2017-09-28 17:21:01 +030020{{ SHARED.MACRO_GENERATE_AND_ENABLE_ENVIRONMENT_MODEL() }}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030021
Vladimir Jigulinf557c562018-07-30 18:30:09 +040022{{ 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" "glusterfs" "xtrabackup" "maas" "backupninja" "jenkins" "fluentd" "logrotate"') }}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030023
24{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
25
26{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
27
Dennis Dmitriev257a9382018-02-15 04:00:46 +020028{{ SHARED.ADJUST_SL_OPTS(OVERRIDES_FILENAME='/srv/salt/reclass/classes/environment/' + ENVIRONMENT_MODEL_INVENTORY_NAME + '/overrides.yml') }}
29
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030030{{ SHARED.MACRO_GENERATE_INVENTORY() }}
31
32{{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }}
33
34{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
35
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030036{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030037
Tatyana Leontovich4453dd62018-06-26 18:44:31 +030038{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}
Dennis Dmitriev9dada8a2017-08-30 17:38:55 +030039