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
30 # scp_be_wait_condition:
31 # type: OS::Heat::WaitCondition
33 # handle: { get_resource: scp_be_wait_handle }
37 # type: OS::Heat::WaitConditionHandle
39 # scp_fe_wait_condition:
40 # type: OS::Heat::WaitCondition
42 # handle: { get_resource: scp_fe_wait_handle }
46 # type: OS::Heat::WaitConditionHandle
49 # type: OS::Heat::WaitCondition
51 # handle: { get_resource: smp_wait_handle }
55 # type: OS::Heat::WaitConditionHandle
58 # type: OS::Heat::WaitCondition
60 # handle: { get_resource: db_wait_handle }
64 # type: OS::Heat::WaitConditionHandle
67 type: OS::Nova::ServerGroup
69 policies: ["anti-affinity"]
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"]
84 type: OS::Contrail::VirtualNetwork
86 name: { get_param: int_vscp_fe_cluster_net_id }
89 type: OS::Neutron::Subnet
91 network_id: { get_resource: FE_Clustering_KA }
92 cidr: { get_param: int_vscp_fe_cluster_cidr }
95 type: OS::Contrail::VirtualNetwork
97 name: { get_param: int_vscp_cluster_net_id }
99 Clustering_Network_subnet:
100 type: OS::Neutron::Subnet
102 network_id: { get_resource: Clustering_Network }
103 cidr: { get_param: int_vscp_cluster_cidr }
106 type: OS::Contrail::VirtualNetwork
108 name: { get_param: int_vscp_db_network_net_id }
111 type: OS::Neutron::Subnet
113 network_id: { get_resource: DB_Network }
114 cidr: { get_param: int_vscp_db_network_cidr }
117 type: OS::Nova::Server
118 # depends on: db_wait_condition
120 name: { get_param: vm_scp_be0_name }
121 image: { get_param: image_scp_be_id }
122 # availability_zone: { get_param: availability_zone_be0 }
123 flavor: { get_param: flavor_scp_be_id }
124 scheduler_hints: { group: { get_resource: BE_Affinity } }
126 - port: { get_resource: be0_port_3 }
127 - port: { get_resource: be0_port_4 }
128 - port: { get_resource: be0_port_5 }
129 - port: { get_resource: be0_port_7 }
131 vnf_id: { get_param: vnf_id }
136 #todo: provision $vm_name
137 wc_notify --data-binary '{"status": "SUCCESS"}'
139 $vm_name: {get_param: vm_scp_be0_name}
140 # wc_notify: { get_attr: ['scp_be_wait_handle', 'curl_cli'] }