Skip to content

Commit

Permalink
Merge pull request #496 from danpaul81/issue-495-vsphere-pw
Browse files Browse the repository at this point in the history
fix vsphere password issue closes #495
  • Loading branch information
mkarg75 authored Mar 27, 2024
2 parents bff99b4 + d9ebe0e commit 0622f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM --platform=linux/amd64 golang:1.20-alpine3.18 AS build
RUN wget -P / https://releases.hashicorp.com/terraform/1.6.1/terraform_1.6.1_linux_amd64.zip
RUN unzip /terraform_1.6.1_linux_amd64.zip -d /usr/bin/
RUN wget -P / https://github.com/vmware/govmomi/releases/download/v0.33.0/govc_Linux_x86_64.tar.gz
RUN wget -P / https://github.com/vmware/govmomi/releases/download/v0.36.1/govc_Linux_x86_64.tar.gz
RUN tar -xzf /govc_Linux_x86_64.tar.gz -C /usr/bin/
RUN mkdir -p /root/go/src/px-deploy
COPY go.mod go.sum *.go /root/go/src/px-deploy/
Expand Down
7 changes: 5 additions & 2 deletions vagrant/all-common
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ if [ $cloud = "aws" -o $cloud = "gcp" -o $cloud = "azure" ]; then
done
done
elif [ $cloud = "vsphere" ]; then
curl -Ls https://github.com/vmware/govmomi/releases/download/v0.32.0/govc_Linux_x86_64.tar.gz | tar -xzf - -C /usr/bin/
curl -Ls https://github.com/vmware/govmomi/releases/download/v0.36.1/govc_Linux_x86_64.tar.gz | tar -xzf - -C /usr/bin/
chmod 755 /usr/bin/govc
export GOVC_URL=$vsphere_user:$vsphere_password@$vsphere_host
export GOVC_URL=$vsphere_host
export GOVC_USERNAME=$vsphere_user
export GOVC_PASSWORD=$vsphere_password
export GOVC_DATACENTER=$vsphere_datacenter
export GOVC_INSECURE=1
while :; do
sleep 1
Expand Down

0 comments on commit 0622f40

Please sign in to comment.