# Shell Scripts #
#################
+# Macro: integration-infra-stack
+# Operation: Sets environment and then calls opendaylight-infra-stack to spin
+# up csit lab using openstack-heat.
+# Used by: {project}-csit-* job templates
+
+- builder:
+ name: integration-infra-stack
+ builders:
+ - integration-cleanup-workspace
+ - shell: |
+ #!/bin/bash
+ # Setup openstack envirnoment file for use by
+ # the opendaylight-infra-stack macro
+ cat > $WORKSPACE/opendaylight-infra-environment.yaml << EOF
+ parameters:
+ vm_0_count: {vm_0_count}
+ vm_0_flavor: {vm_0_flavor}
+ vm_0_image: {vm_0_image}
+ vm_1_count: {vm_1_count}
+ vm_1_flavor: {vm_1_flavor}
+ vm_1_image: {vm_1_image}
+ EOF
+ echo "Contents of opendaylight-infra-environment.yaml ..."
+ cat $WORKSPACE/opendaylight-infra-environment.yaml
+ - opendaylight-infra-stack:
+ stack-template: '{stack-template}'
+
# Macro: integration-copy-ssh-keys
# Operation: Copy ssh public key used as authentication for robot
# Used by: {project}-csit-* job templates
mininet-vms: 1
docker-image: 'centos7-docker-2c-4g'
stack-template: csit-2-instance-type.yaml
- vm_0_count: 1
- vm_0_flavor: 4 GB General Purpose v1
- vm_0_image: CentOS 7 - java-builder - 20161031-0802
- vm_1_count: 1
- vm_1_flavor: 2 GB General Purpose v1
- vm_1_image: Ubuntu 14.04 - mininet - 20161031-0803
+ odl_system_count: 1
+ odl_system_flavor: 4 GB General Purpose v1
+ odl_system_image: CentOS 7 - java-builder - 20161031-0802
+ tools_system_count: 1
+ tools_system_flavor: 2 GB General Purpose v1
+ tools_system_image: Ubuntu 14.04 - mininet - 20161031-0803
# Robot
robot-options: ''