Dennis Dmitriev | eea5bb3 | 2017-09-03 23:20:54 +0300 | [diff] [blame] | 1 | {% 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 Dmitriev | 9dada8a | 2017-08-30 17:38:55 +0300 | [diff] [blame] | 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-devops-mcp-ocata-sl2') %} |
Dennis Dmitriev | 9f141af | 2017-09-28 17:21:01 +0300 | [diff] [blame] | 10 | # 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 Dmitriev | ccdc87a | 2017-09-28 17:43:54 +0300 | [diff] [blame] | 12 | {%- set ENVIRONMENT_CONTEXT_NAMES = ['salt-context-environment.yaml'] %} |
Dennis Dmitriev | 9dada8a | 2017-08-30 17:38:55 +0300 | [diff] [blame] | 13 | |
| 14 | {% import 'shared-salt.yaml' as SHARED with context %} |
| 15 | |
| 16 | {{ SHARED.MACRO_INSTALL_SALT_MASTER() }} |
| 17 | |
Dennis Dmitriev | 9f141af | 2017-09-28 17:21:01 +0300 | [diff] [blame] | 18 | {{ SHARED.MACRO_GENERATE_COOKIECUTTER_MODEL() }} |
Dennis Dmitriev | 9dada8a | 2017-08-30 17:38:55 +0300 | [diff] [blame] | 19 | |
Dennis Dmitriev | 9f141af | 2017-09-28 17:21:01 +0300 | [diff] [blame] | 20 | {{ SHARED.MACRO_GENERATE_AND_ENABLE_ENVIRONMENT_MODEL() }} |
Dennis Dmitriev | 9dada8a | 2017-08-30 17:38:55 +0300 | [diff] [blame] | 21 | |
Dennis Dmitriev | 01a5129 | 2018-01-18 17:41:17 +0200 | [diff] [blame^] | 22 | {{ 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"') }} |
Dennis Dmitriev | 9dada8a | 2017-08-30 17:38:55 +0300 | [diff] [blame] | 23 | |
| 24 | {{ SHARED.MACRO_INSTALL_SALT_MINIONS() }} |
| 25 | |
| 26 | {{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }} |
| 27 | |
| 28 | {{ SHARED.MACRO_GENERATE_INVENTORY() }} |
| 29 | |
| 30 | {{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }} |
| 31 | |
| 32 | {{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }} |
| 33 | |
| 34 | #- description: Hack gtw node |
| 35 | # cmd: salt 'gtw*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.110/24 dev ens4; ip addr flush dev ens4"; |
| 36 | # node_name: {{ HOSTNAME_CFG01 }} |
| 37 | # retry: {count: 1, delay: 10} |
| 38 | # skip_fail: false |
| 39 | |
| 40 | #- description: Hack cmp01 node |
| 41 | # cmd: salt 'cmp01*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4"; |
| 42 | # node_name: {{ HOSTNAME_CFG01 }} |
| 43 | # retry: {count: 1, delay: 10} |
| 44 | # skip_fail: false |
| 45 | |
| 46 | #- description: Hack cmp02 node |
| 47 | # cmd: salt 'cmp02*' cmd.run "ip addr del {{ SHARED.IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4"; |
| 48 | # node_name: {{ HOSTNAME_CFG01 }} |
| 49 | # retry: {count: 1, delay: 10} |
| 50 | # skip_fail: false |