Qarik-Group / bucc

The fastest way to get a BUCC (BOSH, UAA Credhub and Concourse)
Apache License 2.0
134 stars 46 forks source link

[vsphere] add govc command to install govc, and add $GOCV vars to env #147

Closed drnic closed 6 years ago

drnic commented 6 years ago

@cweibel discovered govc https://starkandwayne.com/blog/newly-discovered-tool-vsphere-cli-govc/ - a CLI for vSphere. This PR makes it installable and easily configured (via bucc env):

$ bucc
...
  govc -- installs vSphere CLI

$ bucc govc
installing govc cli '0.18.0' into: /Users/drnic/Projects/bosh_deployments/bucc/bin/

$ source <(bucc env)
$ govc version
govc 0.18.0
$ govc ls
/Interxion MAD2/vm
/Interxion MAD2/network
/Interxion MAD2/host
/Interxion MAD2/datastore

NOTE: the govc subcommand is only mentioned in the bucc help if CPI is vsphere

ramonskie commented 6 years ago

i know about govc for a verry long time now. but i don't see the use of govc with the use of vsphere in bucc.. any examples?

rkoster commented 6 years ago

I agree with @ramonskie this feels a bit out of scope for BUCC, which is about BOSH UAA Concourse and Credhub. Secondary I don't know if we should encourage people to use govc, since ideally BOSH should be dealing with the IaaS and not the user.

drnic commented 6 years ago

Ok, np closing.

cweibel commented 6 years ago

Interesting to see the birth and death of an idea so quickly!

ramonskie commented 6 years ago

well if you can give me a sample why the cli would be handy for a bucc deployment..

cweibel commented 6 years ago

I don't know BUCC well enough to argue for or against including govc. I just recently discovered govc and really enjoyed using it so I could discover what values for datacenter I needed to feed BOSH.

I think maybe the easier way of looking at this is any tool automation you have which sucks in the AWS CLI maybe consider doing the same with govc.

Thanks!