-
-
Save heathseals/6342473 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
[ ! -d ~/.chef ] && mkdir -p ~/.chef | |
cat<<EOF > ~/.chef/knife.rb | |
knife[:vsphere_host] = "virtualcenter.eftdomain.net" | |
knife[:vsphere_user] = "${LOGNAME}" | |
knife[:vsphere_pass] = "${WINDOWS_PASSWORD}" | |
knife[:vsphere_dc] = "Nashville" | |
knife[:vsphere_insecure] = true | |
EOF | |
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