Pavel Glazov | b4b7c53 | 2024-05-22 15:13:48 +0400 | [diff] [blame^] | 1 | --- |
| 2 | |
| 3 | heat_template_version: queens |
| 4 | |
| 5 | description: MCP environment for released-bm-cicd-queens-ovs-cl-maas |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: released-bm-cicd-queens-ovs-cl-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.12.0/24" |
| 31 | external_subnet_cidr: |
| 32 | type: string |
| 33 | default: "172.17.42.0/26" |
| 34 | management_subnet_cidr: |
| 35 | type: string |
| 36 | default: "172.16.180.0/23" |
| 37 | management_subnet_cfg01_ip: |
| 38 | type: string |
| 39 | default: 172.16.180.2 |
| 40 | management_subnet_gateway_ip: |
| 41 | type: string |
| 42 | default: 172.16.180.1 |
| 43 | management_subnet_pool_start: |
| 44 | type: string |
| 45 | default: 172.16.180.3 |
| 46 | management_subnet_pool_end: |
| 47 | type: string |
| 48 | default: 172.16.180.61 |
| 49 | salt_master_control_ip: |
| 50 | type: string |
| 51 | default: 10.167.11.5 |
| 52 | deploy_empty_node: |
| 53 | type: boolean |
| 54 | default: False |
| 55 | |
| 56 | resources: |
| 57 | subnets: |
| 58 | type: MCP::Subnets |
| 59 | properties: |
| 60 | stack_name: { get_param: "OS::stack_name" } |
| 61 | env_name: { get_param: env_name } |
| 62 | management_net: 'system-phys-2401' |
| 63 | control_net: 'system-phys-2404' |
| 64 | tenant_net: 'system-phys-2406' |
| 65 | external_net: 'system-phys-2403' |
| 66 | control_subnet_cidr: { get_param: control_subnet_cidr } |
| 67 | tenant_subnet_cidr: { get_param: tenant_subnet_cidr } |
| 68 | external_subnet_cidr: { get_param: external_subnet_cidr } |
| 69 | management_subnet_cidr: { get_param: management_subnet_cidr } |
| 70 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 71 | management_subnet_pool_start: { get_param: management_subnet_pool_start } |
| 72 | management_subnet_pool_end: { get_param: management_subnet_pool_end } |
| 73 | |
| 74 | #flavors: |
| 75 | # type: MCP::Flavors |
| 76 | |
| 77 | cfg01_node: |
| 78 | type: MCP::MasterNode |
| 79 | depends_on: [subnets] |
| 80 | properties: |
| 81 | env_name: { get_param: env_name } |
| 82 | mcp_version: { get_param: mcp_version } |
| 83 | cfg01_flavor: { get_param: cfg_flavor } |
| 84 | availability_zone: { get_param: bm_availability_zone } |
| 85 | management_net: 'system-phys-2401' |
| 86 | control_net: 'system-phys-2404' |
| 87 | tenant_net: 'system-phys-2406' |
| 88 | external_net: 'system-phys-2403' |
| 89 | salt_master_control_ip: { get_param: salt_master_control_ip } |
| 90 | management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip } |
| 91 | tenant_net_static_ip: |
| 92 | list_join: |
| 93 | - '.' |
| 94 | - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ] |
| 95 | external_net_static_ip: |
| 96 | list_join: |
| 97 | - '.' |
| 98 | - [ { get_attr: [subnets, external_net_prefix] }, '5' ] |
| 99 | instance_name: cfg01 |
| 100 | instance_domain: {get_param: instance_domain} |
| 101 | |
| 102 | foundation_node: |
| 103 | type: MCP::FoundationNode |
| 104 | depends_on: [subnets] |
| 105 | properties: |
| 106 | env_name: { get_param: env_name } |
| 107 | mcp_version: { get_param: mcp_version } |
| 108 | instance_domain: {get_param: instance_domain} |
| 109 | instance_name: foundation |
| 110 | availability_zone: { get_param: bm_availability_zone } |
| 111 | management_net: 'system-phys-2401' |
| 112 | control_net: 'system-phys-2404' |
| 113 | tenant_net: 'system-phys-2406' |
| 114 | external_net: 'system-phys-2403' |
| 115 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 116 | instance_image: { get_param: foundation_image } |
| 117 | instance_flavor: {get_param: foundation_flavor} |
| 118 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
| 119 | management_net_static_ip: |
| 120 | list_join: |
| 121 | - '.' |
| 122 | - [ { get_attr: [subnets, management_net_prefix] }, '62' ] |
| 123 | control_net_static_ip: |
| 124 | list_join: |
| 125 | - '.' |
| 126 | - [ { get_attr: [subnets, control_net_prefix] }, '6' ] |
| 127 | tenant_net_static_ip: |
| 128 | list_join: |
| 129 | - '.' |
| 130 | - [ { get_attr: [subnets, tenant_net_prefix] }, '6' ] |
| 131 | external_net_static_ip: |
| 132 | list_join: |
| 133 | - '.' |
| 134 | - [ { get_attr: [subnets, external_net_prefix] }, '6' ] |
| 135 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 136 | outputs: |
| 137 | foundation_public_ip: |
| 138 | description: foundation node IP address (management) |
| 139 | value: |
| 140 | get_attr: |
| 141 | - foundation_node |
| 142 | - instance_address |
| 143 | ... |