Created
January 7, 2016 17:07
-
-
Save patrickcrocker/2ccdb796d28a955e0ccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "OVF Source File: " | |
read -r VCD_SRC_INPUT | |
export VCD_SRC=$VCD_SRC_INPUT | |
echo "vCloud Director Username: " | |
read -r VCD_USERNAME_INPUT | |
export VCD_USERNAME=$VCD_USERNAME_INPUT | |
echo "vCloud Director Password: " | |
read -sr VCD_PASSWORD_INPUT | |
export VCD_PASSWORD=$VCD_PASSWORD_INPUT | |
echo "vCloud Director Host: (ex: a1v20-vcd.vchs.vmware.com) " | |
read -r VCD_HOST_INPUT | |
export VCD_HOST=$VCD_HOST_INPUT | |
echo "Org Name: " | |
read -r VCD_ORG_INPUT | |
export VCD_ORG=$VCD_ORG_INPUT | |
echo "Template Name: " | |
read -r VCD_TEMPLATE_INPUT | |
export VCD_TEMPLATE=$VCD_TEMPLATE_INPUT | |
echo "Catalog Name: " | |
read -r VCD_CATALOG_INPUT | |
export VCD_CATALOG=$VCD_CATALOG_INPUT | |
ovftool --sourceType=OVF \ | |
--vCloudTemplate=true \ | |
"$VCD_SRC" \ | |
"vcloud://$VCD_USERNAME:$VCD_PASSWORD@$VCD_HOST?org=$VCD_ORG&vappTemplate=$VCD_TEMPLATE&catalog=$VCD_CATALOG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment