[Gerrit] Adding output Gerrit https URL (with hostname)

* Refactored gerrit IP output

Change-Id: I793c24cc05b74b5234b8e724415497da524ad3f1
This commit is contained in:
Nikolay Mahotkin 2016-06-30 11:56:08 +03:00
parent 4cc23637de
commit 3050b40bdd

View File

@ -80,9 +80,16 @@ Methods:
- $.createAccount('', $.ldap.ldapUser, $.ldap.ldapEmail, $.userSSH, $.ldap.ldapUser)
- $._environment.reporter.report($this, 'Gerrit is deployed.')
- $linux: new(conf:Linux)
- $gerritHost: $linux.runCommand($.instance.agent, 'hostname -f').stdout
- If: $.instance.assignFloatingIp
Then:
- $gerritIP: $.instance.floatingIpAddress
Else:
- $gerritIP: $.instance.ipAddresses[0]
- $._environment.reporter.report($this, format('Gerrit service is launched on host {0} accessing by IP {1}.', $gerritHost, $gerritIP))
- $._environment.reporter.report($this, format('Gerrit is available at http://{0}:80 or http://{0}:8081', $gerritIP))
- $.setAttr(deployed, true)
- $._environment.reporter.report($this, format('Gerrit is available at http://{0}:80 or http://{1}:8081',
$.instance.floatingIpAddress, $.instance.floatingIpAddress))
_deployGerrit:
Body: