Revision 0368716b
b/ci/ci_wheezy.conf | ||
---|---|---|
55 | 55 |
# File containing the ssh keys to upload/install to server |
56 | 56 |
# If not set, no ssh keys will be installed |
57 | 57 |
ssh_keys = ~/.ssh/id_rsa.pub |
58 |
# Allocate a public floating IP for the new server |
|
59 |
allocate_floating_ip = True |
|
60 |
# List of networks IDs (comma seperated) to connect server |
|
61 |
private_networks = |
|
58 | 62 |
|
59 | 63 |
|
60 | 64 |
[Burnin] |
b/ci/utils.py | ||
---|---|---|
299 | 299 |
flavor_id = self._find_flavor(flavor) |
300 | 300 |
|
301 | 301 |
# Create Server |
302 |
fip = self._create_floating_ip() |
|
303 |
port = self._create_port(fip) |
|
304 |
networks = [{'port': port['id']}] |
|
302 |
networks = [] |
|
303 |
if self.config.get("Deployment", "allocate_floating_ip") == "True": |
|
304 |
fip = self._create_floating_ip() |
|
305 |
port = self._create_port(fip) |
|
306 |
networks.append({'port': port['id']}) |
|
307 |
private_networks = self.config.get('Deployment', 'private_networks') |
|
308 |
if private_networks: |
|
309 |
private_networks = private_networks.split(",") |
|
310 |
networks.extend([{"uuid": uuid.strip()} |
|
311 |
for uuid in private_networks]) |
|
305 | 312 |
if server_name is None: |
306 | 313 |
server_name = self.config.get("Deployment", "server_name") |
307 | 314 |
server_name = "%s(BID: %s)" % (server_name, self.build_id) |
Also available in: Unified diff