Revision ddd240ff
b/ci/new_config | ||
---|---|---|
29 | 29 |
[Deployment] |
30 | 30 |
# Choose the 'cloud' to use from .kamakirc |
31 | 31 |
kamaki_cloud = |
32 |
# If we deploy on okeanos.io we have to set this to True |
|
33 |
# The server will reside besides a NAT and we have to compute ssh port |
|
34 |
deploy_on_io = True |
|
35 | 32 |
# Server name to use for our machine |
36 | 33 |
server_name = Synnefo Deployment |
37 | 34 |
# Flavor ID to use |
b/ci/utils.py | ||
---|---|---|
260 | 260 |
def _get_server_ip_and_port(self, server): |
261 | 261 |
"""Compute server's IPv4 and ssh port number""" |
262 | 262 |
self.logger.info("Get server connection details..") |
263 |
# XXX: check if this IP is from public network |
|
264 | 263 |
server_ip = server['attachments'][0]['ipv4'] |
265 |
if self.config.get('Deployment', 'deploy_on_io') == "True":
|
|
264 |
if ".okeanos.io" in self.cyclades_client.base_url:
|
|
266 | 265 |
tmp1 = int(server_ip.split(".")[2]) |
267 | 266 |
tmp2 = int(server_ip.split(".")[3]) |
268 | 267 |
server_ip = "gate.okeanos.io" |
Also available in: Unified diff