Oleksii Butenko | 87d00c0 | 2018-09-05 19:11:17 +0300 | [diff] [blame] | 1 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CMP01 with context %} |
| 3 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CMP02 with context %} |
| 4 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %} |
| 5 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %} |
| 6 | {% from 'cookied-mcp-queens-ovs/underlay.yaml' import DOMAIN_NAME with context %} |
| 7 | |
| 8 | {% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %} |
| 9 | # Other salt model repository parameters see in shared-salt.yaml |
| 10 | |
| 11 | {% import 'shared-salt.yaml' as SHARED with context %} |
| 12 | |
| 13 | {{ SHARED.MACRO_INSTALL_SALT_MASTER() }} |
| 14 | |
| 15 | {{ SHARED.MACRO_CLONE_RECLASS_MODELS() }} |
| 16 | |
Oleksii Butenko | a2fa061 | 2018-09-20 12:01:44 +0300 | [diff] [blame] | 17 | {{ SHARED.MACRO_CONFIGURE_RECLASS(FORMULA_SERVICES='\*') }} |
Oleksii Butenko | 87d00c0 | 2018-09-05 19:11:17 +0300 | [diff] [blame] | 18 | {{ SHARED.MACRO_INSTALL_SALT_MINIONS() }} |
| 19 | |
| 20 | {{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }} |
| 21 | |
Oleksii Butenko | 0d68279 | 2018-09-11 18:48:05 +0300 | [diff] [blame] | 22 | - description: Start compute node addresses from .105 , as in static models |
| 23 | cmd: | |
| 24 | sed -i 's/start: 101/start: 105/g' /srv/salt/reclass/classes/cluster/{{ SHARED.CLUSTER_NAME }}/infra/config.yml;ml; |
| 25 | node_name: {{ HOSTNAME_CFG01 }} |
| 26 | retry: {count: 1, delay: 5} |
| 27 | skip_fail: true |
| 28 | |
Oleksii Butenko | 87d00c0 | 2018-09-05 19:11:17 +0300 | [diff] [blame] | 29 | {{ SHARED.MACRO_GENERATE_INVENTORY() }} |
| 30 | |
| 31 | {{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }} |
| 32 | |
| 33 | {{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }} |
| 34 | |
| 35 | {{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}} |
| 36 | |
| 37 | {{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}} |