2 heat_template_version: 2017-02-24
3 description: Doctor Maintenance test case
21 app_manager_alarm_url:
23 default: http://0.0.0.0:12348/maintenance
26 default: http://0.0.0.0:12345/maintenance
31 type: OS::Neutron::Net
34 type: OS::Neutron::Subnet
36 network_id: {get_resource: int_net}
38 dns_nameservers: ["8.8.8.8"]
42 type: OS::Neutron::Router
44 external_gateway_info: {network: {get_param: ext_net}}
47 type: OS::Neutron::RouterInterface
49 router_id: {get_resource: int_router}
50 subnet: {get_resource: int_subnet}
52 maint_instance_flavor:
53 type: OS::Nova::Flavor
55 name: doctor_maint_flavor
57 vcpus: {get_param: flavor_vcpus}
61 type: OS::Nova::ServerGroup
63 name: doctor_ha_app_group
64 policies: ['anti-affinity']
67 type: OS::Nova::FloatingIP
69 pool: {get_param: ext_net}
72 type: OS::Heat::ResourceGroup
74 count: {get_param: ha_intances}
76 type: OS::Nova::Server
78 name: doctor_ha_app_%index%
79 flavor: {get_resource: maint_instance_flavor}
80 image: {get_param: maint_image}
82 - network: {get_resource: int_net}
84 group: {get_resource: ha_app_svrgrp}
86 multi_nonha_instances:
87 type: OS::Heat::ResourceGroup
89 count: {get_param: nonha_intances}
91 type: OS::Nova::Server
93 name: doctor_nonha_app_%index%
94 flavor: {get_resource: maint_instance_flavor}
95 image: {get_param: maint_image}
97 - network: {get_resource: int_net}
100 type: OS::Nova::FloatingIPAssociation
102 floating_ip: {get_resource: floating_ip}
103 server_id: {get_attr: [multi_ha_instances, resource.0]}
106 type: OS::Aodh::EventAlarm
109 - {get_param: app_manager_alarm_url}
110 event_type: "maintenance.scheduled"
114 type: OS::Aodh::EventAlarm
117 - {get_param: inpector_alarm_url}
118 event_type: "maintenance.host"