blob: fe37cfc418107fbbe03c166ade363ebb79f3eb7e [file] [log] [blame]
Dennis Dmitriev411dd102017-09-15 16:04:47 +03001{% from 'cookied-mcp-ocata-dop-sl2/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-ocata-dop-sl2/underlay.yaml' import LAB_CONFIG_NAME with context %}
3{% from 'cookied-mcp-ocata-dop-sl2/underlay.yaml' import DOMAIN_NAME with context %}
4
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-mcp-ocata-dop-sl2') %}
10# Path to the context files used to render Cluster and Environment models
11{%- set CLUSTER_CONTEXT_PATH = '/tmp/environment/salt-context-cicd_oss.yaml' %}
12{%- set ENVIRONMENT_CONTEXT_PATH = '/tmp/environment/salt-context-environment.yaml' %}
13
14{% import 'shared-salt.yaml' as SHARED with context %}
15
16{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
17
Dennis Dmitrieva5f38e42017-09-21 21:52:25 +030018{{ SHARED.MACRO_GENERATE_COOKIECUTTER_MODELS() }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030019
Dennis Dmitrievbfc06a82017-09-21 14:10:25 +030020{{ 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"') }}
Dennis Dmitriev411dd102017-09-15 16:04:47 +030021
22{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
23
24{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
25
26{{ SHARED.MACRO_GENERATE_INVENTORY() }}
27
28{{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }}
29
30{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
31
32#- description: Hack gtw node
33# cmd: salt 'gtw*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.110/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 cmp01 node
39# cmd: salt 'cmp01*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4";
40# node_name: {{ HOSTNAME_CFG01 }}
41# retry: {count: 1, delay: 10}
42# skip_fail: false
43
44#- description: Hack cmp02 node
45# cmd: salt 'cmp02*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4";
46# node_name: {{ HOSTNAME_CFG01 }}
47# retry: {count: 1, delay: 10}
48# skip_fail: false