| 1 |
heat_template_version: 2015-10-15 |
| 2 |
|
| 3 |
description: | |
| 4 |
App server that is a member of Neutron Pool. |
| 5 |
|
| 6 |
parameters: |
| 7 |
|
| 8 |
image: |
| 9 |
type: string |
| 10 |
|
| 11 |
flavor: |
| 12 |
type: string |
| 13 |
|
| 14 |
net: |
| 15 |
type: string |
| 16 |
|
| 17 |
sec_group: |
| 18 |
type: string |
| 19 |
|
| 20 |
pool_id: |
| 21 |
type: string |
| 22 |
|
| 23 |
app_port: |
| 24 |
type: number |
| 25 |
|
| 26 |
timeout: |
| 27 |
type: number |
| 28 |
|
| 29 |
wc_extra_args: |
| 30 |
type: string |
| 31 |
default: "" |
| 32 |
|
| 33 |
resources: |
| 34 |
|
| 35 |
config: |
| 36 |
type: OS::Test::WebAppConfig |
| 37 |
properties: |
| 38 |
app_port: { get_param: app_port } |
| 39 |
wc_curl_cli: |
| 40 |
list_join: |
| 41 |
- " " |
| 42 |
- [ get_attr: [ handle, curl_cli ], get_param: wc_extra_args ] |
| 43 |
|
| 44 |
server: |
| 45 |
type: OS::Nova::Server |
| 46 |
properties: |
| 47 |
image: { get_param: image } |
| 48 |
flavor: { get_param: flavor } |
| 49 |
networks: |
| 50 |
- network: { get_param: net } |
| 51 |
security_groups: |
| 52 |
- { get_param: sec_group } |
| 53 |
user_data_format: RAW |
| 54 |
user_data: { get_resource: config } |
| 55 |
|
| 56 |
handle: |
| 57 |
type: OS::Heat::WaitConditionHandle |
| 58 |
|
| 59 |
waiter: |
| 60 |
type: OS::Heat::WaitCondition |
| 61 |
depends_on: server |
| 62 |
properties: |
| 63 |
timeout: { get_param: timeout } |
| 64 |
handle: { get_resource: handle } |
| 65 |
|
| 66 |
pool_member: |
| 67 |
type: OS::Neutron::PoolMember |
| 68 |
depends_on: waiter |
| 69 |
properties: |
| 70 |
address: { get_attr: [ server, networks, { get_param: net }, 0 ] } |
| 71 |
pool_id: { get_param: pool_id } |
| 72 |
protocol_port: { get_param: app_port } |