Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[ ! -d ~/.chef ] && mkdir -p ~/.chef
cat<<EOF > ~/.chef/knife.rb
knife[:vsphere_host] = ""
knife[:vsphere_user] = "${LOGNAME}"
knife[:vsphere_pass] = "${WINDOWS_PASSWORD}"
knife[:vsphere_dc] = "Nashville"
knife[:vsphere_insecure] = true
chmod 600 .chef/knife.rb
proxyon; export GEM_HOME=~/lib; gem install knife-vsphere --no-ri --no-rdoc
export "PATH=$PATH:$HOME/lib/bin"
knife vsphere vm list
knife vsphere vm list --folder EFTLAB_VMs
knife vsphere vm list --folder EFTLAB_VMs/Templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment