Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. Vagrant.configure('2') do |config|
  5. # All Vagrant configuration is done here. The most common configuration
  6. # options are documented and commented below. For a complete reference,
  7. # please see the online documentation at vagrantup.com.
  8.  
  9. config.vm.define :'centos7-powercli' do |m|
  10. m.vm.box = 'standorsett/centos-7'
  11. m.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__args: ["--verbose", "--archive", "--delete", "-z", "--links"]
  12.  
  13. m.vm.hostname = 'centos7-powercli'
  14. m.vm.provider :vcenter do |vcenter|
  15. vcenter.hostname = '192.168.1.10'
  16. vcenter.username = 'administrator@vsphere.local'
  17. vcenter.password = 'VMware123!'
  18. vcenter.folder_name = 'Vagrant/Deployed'
  19. vcenter.datacenter_name = 'datacenter'
  20. vcenter.computer_name = 'cluster'
  21. vcenter.datastore_name = 'local-datastore'
  22. vcenter.template_folder_name = 'Vagrant/Templates'
  23. vcenter.network_name = 'VM Network'
  24. vcenter.linked_clones = true
  25. vcenter.enable_vm_customization = true
  26. vcenter.num_cpu = 2
  27. vcenter.memory = 4096
  28. end
  29.  
  30. m.nfs.functional = false
  31. end
  32.  
  33. config.vm.provision :shell do |shell|
  34. shell.path = "install-powercli-dependencies.sh"
  35. end
  36.  
  37. config.vm.provision :shell do |shell|
  38. shell.path = "install-powercli.sh"
  39. shell.privileged = false
  40. end
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement