PACKER_DIR="${BUILD_DIR}/packer"
OUT_DIR="${BUILD_DIR}/output/listmaker"
-RELEASE_NAME="csit-ubuntu-14.04.4-listmaker"
-PACKER_TEMPLATE="listmaker/ubuntu-14.04.4.json"
+if [ "$1" = "ubuntu-14.04.4" ]
+then
+ RELEASE_NAME="csit-ubuntu-14.04.4-listmaker"
+ PACKER_TEMPLATE="listmaker/ubuntu-14.04.4.json"
+elif [ "$1" = "ubuntu-16.04.1" ]
+then
+ RELEASE_NAME="csit-ubuntu-16.04.1-listmaker"
+ PACKER_TEMPLATE="listmaker/ubuntu-16.04.1.json"
+else
+ echo "Please provide OS as parameter:"
+ echo "Options: ${0} [ubuntu-14.04.4|ubuntu-16.04.1]"
+ exit 1
+fi
VIRL_IMAGE_SUBTYPE=server
VIRL_IMAGE_NAME="${RELEASE_NAME}"