Pavel Glazov | 2871c3d | 2022-12-22 20:53:49 +0400 | [diff] [blame^] | 1 | --- |
| 2 | |
| 3 | heat_template_version: queens |
| 4 | |
| 5 | description: MCP environment for bm-b300-e7-cicd-pike-ovs-maas |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: bm-b300-e7-cicd-pike-ovs-maas.local |
| 11 | mcp_version: |
| 12 | type: string |
| 13 | env_name: |
| 14 | type: string |
| 15 | key_pair: |
| 16 | type: string |
| 17 | cfg_flavor: |
| 18 | type: string |
| 19 | foundation_image: |
| 20 | type: string |
| 21 | foundation_flavor: |
| 22 | type: string |
| 23 | bm_availability_zone: |
| 24 | type: string |
| 25 | control_subnet_cidr: |
| 26 | type: string |
| 27 | default: "10.167.11.0/24" |
| 28 | tenant_subnet_cidr: |
| 29 | type: string |
| 30 | default: "10.167.13.0/24" |
| 31 | external_subnet_cidr: |
| 32 | type: string |
| 33 | default: "172.17.42.64/26" |
| 34 | management_subnet_cidr: |
| 35 | type: string |
| 36 | default: "172.16.162.64/26" |
| 37 | management_subnet_cfg01_ip: |
| 38 | type: string |
| 39 | default: 172.16.162.66 |
| 40 | management_subnet_gateway_ip: |
| 41 | type: string |
| 42 | default: 172.16.162.65 |
| 43 | management_subnet_pool_start: |
| 44 | type: string |
| 45 | default: 172.16.162.67 |
| 46 | management_subnet_pool_end: |
| 47 | type: string |
| 48 | default: 172.16.162.100 |
| 49 | salt_master_control_ip: |
| 50 | type: string |
| 51 | default: 172.16.162.66 |
| 52 | deploy_empty_node: |
| 53 | type: boolean |
| 54 | default: False |
| 55 | |
| 56 | |
| 57 | resources: |
| 58 | subnets: |
| 59 | type: MCP::SubnetsE7 |
| 60 | properties: |
| 61 | stack_name: { get_param: "OS::stack_name" } |
| 62 | env_name: { get_param: env_name } |
| 63 | management_net: 'system-phys-430' |
| 64 | management_subnet_cidr: { get_param: management_subnet_cidr } |
| 65 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 66 | management_subnet_pool_start: { get_param: management_subnet_pool_start } |
| 67 | management_subnet_pool_end: { get_param: management_subnet_pool_end } |
| 68 | |
| 69 | #flavors: |
| 70 | # type: MCP::Flavors |
| 71 | |
| 72 | cfg01_node: |
| 73 | type: MCP::MasterNodeE7 |
| 74 | depends_on: [subnets] |
| 75 | properties: |
| 76 | env_name: { get_param: env_name } |
| 77 | mcp_version: { get_param: mcp_version } |
| 78 | cfg01_flavor: { get_param: cfg_flavor } |
| 79 | availability_zone: { get_param: bm_availability_zone } |
| 80 | management_net: 'system-phys-430' |
| 81 | management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip } |
| 82 | instance_name: cfg01 |
| 83 | instance_domain: {get_param: instance_domain} |
| 84 | |
| 85 | foundation_node: |
| 86 | type: MCP::FoundationNodeE7 |
| 87 | depends_on: [subnets] |
| 88 | properties: |
| 89 | env_name: { get_param: env_name } |
| 90 | mcp_version: { get_param: mcp_version } |
| 91 | instance_domain: {get_param: instance_domain} |
| 92 | instance_name: foundation |
| 93 | availability_zone: { get_param: bm_availability_zone } |
| 94 | management_net: 'system-phys-430' |
| 95 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 96 | instance_image: { get_param: foundation_image } |
| 97 | instance_flavor: {get_param: foundation_flavor} |
| 98 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
| 99 | management_net_static_ip: |
| 100 | list_join: |
| 101 | - '.' |
| 102 | - [ { get_attr: [subnets, management_net_prefix] }, '126' ] |
| 103 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 104 | outputs: |
| 105 | foundation_public_ip: |
| 106 | description: foundation node IP address (management) |
| 107 | value: |
| 108 | get_attr: |
| 109 | - foundation_node |
| 110 | - instance_address |
| 111 | ... |