summaryrefslogtreecommitdiff
path: root/hot/lb_server.yaml
diff options
context:
space:
mode:
authorRoberto Polli <robipolli@gmail.com>2017-10-11 17:17:50 +0200
committerRoberto Polli <robipolli@gmail.com>2017-10-12 08:26:26 +0000
commit2823fcafdc66d384a5d8207966a5e797ae466403 (patch)
treecd11f5af9d047d5f87f8803ea2ae1251f7c02872 /hot/lb_server.yaml
parent1d2d3cb75f30d60f4e7468c64f49e9752e55719b (diff)
downloadheat-templates-2823fcafdc66d384a5d8207966a5e797ae466403.tar.gz
Replace LBaaS with LBaaSv2.
Since Mitaka, OS::Neutron::LBaaS::LoadBalancer replaces OS::Neutron::LoadBalancer. The patch replaces both heat_template_version and OS::Neutron::LoadBalancer. Closes-Bug: #1722853 Change-Id: I284c72b67bdaaadde35a97feb807171046e3a93f
Diffstat (limited to 'hot/lb_server.yaml')
-rw-r--r--hot/lb_server.yaml10
1 files changed, 7 insertions, 3 deletions
diff --git a/hot/lb_server.yaml b/hot/lb_server.yaml
index 3cd907f..67762b6 100644
--- a/hot/lb_server.yaml
+++ b/hot/lb_server.yaml
@@ -1,4 +1,4 @@
-heat_template_version: 2013-05-23
+heat_template_version: 2016-10-14
description: A load-balancer server
parameters:
image:
@@ -21,6 +21,9 @@ parameters:
network:
type: string
description: Network used by the server
+ subnet:
+ type: string
+ description: Subnet used by the server
resources:
server:
@@ -34,11 +37,12 @@ resources:
user_data_format: RAW
networks: [{network: {get_param: network} }]
member:
- type: OS::Neutron::PoolMember
+ type: OS::Neutron::LBaaS::PoolMember
properties:
- pool_id: {get_param: pool_id}
+ pool: {get_param: pool_id}
address: {get_attr: [server, first_address]}
protocol_port: 80
+ subnet: {get_param: subnet}
outputs:
server_ip: