Merge topic 'lbaas'

* changes:
  LBaaS package: improving compatibility with liberty and mitaka releases
  Adding action for retrieving credentials
This commit is contained in:
Nikolay Mahotkin 2016-03-17 12:13:10 +04:00 committed by Gerrit Code Review
commit 2447b48449
2 changed files with 14 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Namespaces:
Name: HAProxy
Extends: =:LoadBalancer
Extends: LoadBalancer
Properties:

View File

@ -38,6 +38,10 @@ Properties:
Contract: $.class(std:Environment)
Usage: Runtime
url:
Contract: $.string()
Usage: Out
Methods:
initialize:
Body:
@ -67,9 +71,17 @@ Methods:
- $host: $.instance.floatingIpAddress
Else:
- $host: $.instance.ipAddresses[0]
- $.environment.reporter.report($this, format('LBaaS is available at http://{0}:{1}{2}', $host, $lbaas.port, $lbaas.path))
- $.url: format('http://{0}:{1}{2}', $host, $lbaas.port, $lbaas.path)
- $.environment.reporter.report($this, format('LBaaS is available at {0}', $.url))
- $.setAttr(deployed, true)
getCredentials:
Usage: Action
Body:
- Return:
credentials:
uri: $.url
installLoadBalancer:
installLBaaS: