Skip to content

tsagai/ovf-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

ovf-deploy

Bash script that uses govc to deploy OVF templates (specifically Tanzu Ops Manager VMs) to VSphere

Initial Setup

  1. Make script executable
chmod +x ovfdeploy.sh
  1. Install binary release of govc and jq

govc - https://github.com/vmware/govmomi/releases

jq - https://github.com/stedolan/jq/releases

  1. Move both binaries to an executable environmental path
sudo mv govc /usr/local/bin && sudo mv jq /usr/local/bin
  1. Install Opsman VM from here - https://network.pivotal.io/products/ops-manager/#/releases/1154098

Configuration

Edit the following environmental variables in the script:

GOVC_USERNAME=""
GOVC_PASSWORD=""
GOVC_URL=""
GOVC_INSECURE=
GOVC_DATACENTER=
GOVC_DATASTORE=
GOVC_NETWORK=
GOVC_RESOURCE_POOL=

And

IP=""
NETMASK0=""
GATEWAY=""
DNS=""
NTP_SERVER=""
PUB_SSH_KEY=""
CUSTOM_HOSTNAME=""
NETWORK_NAME=""
VM_NAME=""

If these are not defined, the script will not work properly

Usage

./ovfdeploy.sh /path/to/opsmanvm

Example:

./ovfdeploy.sh ~/Downloads/ops-manager-vsphere-2.10.51-build.662.ova

Releases

No releases published

Packages

No packages published

Languages