1 heat_template_version: 2013-05-23
2 #################################
5 # - Unique availability zone for each VM
6 # - LAN8 and SLAN networks removed according to latest Prod/Type I diagram
9 # - VM start-up order: SMP->DB->BE->FE (no error handling yet)
10 # - Provisioning scripts placeholders
12 #################################
14 description: ASC Template
19 description: city name
27 description: home_number
31 description: home_number
34 # scp_be_wait_condition:
35 # type: OS::Heat::WaitCondition
37 # handle: { get_resource: scp_be_wait_handle }
41 # type: OS::Heat::WaitConditionHandle
43 # scp_fe_wait_condition:
44 # type: OS::Heat::WaitCondition
46 # handle: { get_resource: scp_fe_wait_handle }
50 # type: OS::Heat::WaitConditionHandle
53 # type: OS::Heat::WaitCondition
55 # handle: { get_resource: smp_wait_handle }
59 # type: OS::Heat::WaitConditionHandle
62 # type: OS::Heat::WaitCondition
64 # handle: { get_resource: db_wait_handle }
68 # type: OS::Heat::WaitConditionHandle
71 type: OS::Nova::ServerGroup
73 policies: ["anti-affinity"]
75 type: OS::Nova::ServerGroup
77 policies: ["anti-affinity"]
79 type: OS::Nova::ServerGroup
81 policies: ["anti-affinity"]
83 type: OS::Nova::ServerGroup
85 policies: ["anti-affinity"]
88 type: OS::Contrail::VirtualNetwork
90 name: { get_param: int_vscp_fe_cluster_net_id }
93 type: OS::Neutron::Subnet
95 network_id: { get_resource: FE_Clustering_KA }
96 cidr: { get_param: int_vscp_fe_cluster_cidr }
99 type: OS::Contrail::VirtualNetwork
101 name: { get_param: int_vscp_cluster_net_id }
103 Clustering_Network_subnet:
104 type: OS::Neutron::Subnet
106 network_id: { get_resource: Clustering_Network }
107 cidr: { get_param: int_vscp_cluster_cidr }
110 type: OS::Contrail::VirtualNetwork
112 name: { get_param: int_vscp_db_network_net_id }
115 type: OS::Neutron::Subnet
117 network_id: { get_resource: DB_Network }
118 cidr: { get_param: int_vscp_db_network_cidr }
121 type: OS::Nova::Server
122 # depends on: db_wait_condition
124 name: { get_param: vm_scp_be0_name }
125 image: { get_param: image_scp_be_id }
126 # availability_zone: { get_param: availability_zone_be0 }
127 flavor: { get_param: flavor_scp_be_id }
128 scheduler_hints: { group: { get_resource: BE_Affinity } }
130 - port: { get_resource: be0_port_3 }
131 - port: { get_resource: be0_port_4 }
132 - port: { get_resource: be0_port_5 }
133 - port: { get_resource: be0_port_7 }
135 vnf_id: { get_param: vnf_id }
140 #todo: provision $vm_name
141 wc_notify --data-binary '{"status": "SUCCESS"}'
143 $vm_name: {get_param: vm_scp_be0_name}
144 # wc_notify: { get_attr: ['scp_be_wait_handle', 'curl_cli'] }