X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openstack-hot%2Fgeneric-server.yaml;h=39c38563c7edb4464970c36e7b9693e4aced993b;hb=2e46477cba28f15c675df047f004f85f97d439f6;hp=2680dc87556d23bc83d69de35deb223487eedeeb;hpb=ebdc274e0462183313996120b37cc2df8c6058be;p=releng%2Fbuilder.git diff --git a/openstack-hot/generic-server.yaml b/openstack-hot/generic-server.yaml index 2680dc875..39c38563c 100644 --- a/openstack-hot/generic-server.yaml +++ b/openstack-hot/generic-server.yaml @@ -1,3 +1,4 @@ +--- heat_template_version: 2016-04-08 parameters: @@ -32,29 +33,33 @@ resources: instance: type: "OS::Nova::Server" properties: - flavor: { get_param: vm_flavor } - image: { get_param: vm_image } + flavor: {get_param: vm_flavor} + image: {get_param: vm_image} name: str_replace: template: SILO-JOB_NAME-VM_TYPE-INDEX params: - "SILO": { get_param: silo } - "JOB_NAME": { get_param: job_name } + "SILO": {get_param: silo} + "JOB_NAME": {get_param: job_name} "VM_TYPE": str_split: - ' - ' - - { get_param: vm_image } + - {get_param: vm_image} - 1 - "INDEX": { get_param: index } + "INDEX": {get_param: index} networks: - network: RC-ODL - key_name: { get_param: ssh_key } + key_name: {get_param: ssh_key} user_data: | #!/bin/bash + until ping -c1 git.opendaylight.org &>/dev/null + do + echo "Waiting until git.opendaylight.org is resolvable..." + done git clone https://git.opendaylight.org/gerrit/releng/builder /builder /builder/jenkins-scripts/jenkins-init-script.sh outputs: ip: description: IP address of the instance - value: { get_attr: [instance, networks, RC-ODL, 0] } + value: {get_attr: [instance, networks, RC-ODL, 0]}