Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. chef_gem 'chef-provisioning-vsphere' do
  2. action :install
  3. compile_time true
  4. end
  5.  
  6. require 'chef/provisioning/vsphere_driver'
  7.  
  8. with_vsphere_driver host: 'xx.xxx.com',
  9. insecure: true,
  10. user: 'admin',
  11. password: 'xx'
  12.  
  13. with_machine_options :bootstrap_options => {
  14. use_linked_clone: true,
  15. num_cpus: 2,
  16. memory_mb: 4096,
  17. network_name: 'VM-DATA-41',
  18. datacenter: 'xx',
  19. resource_pool: 'DEV-QA-01',
  20. template_folder: 'Templates/Linux',
  21. template_name: 'RHEL-BASE-6.6',
  22. vm_folder: 'xx/Infrastructure/Test/',
  23. customization_spec: {
  24. ipsettings: {
  25. dnsServerList: ['xx','xx']
  26. },
  27. :domain => 'xx.xx.net'
  28. },
  29. :ssh => {
  30. :user => 'root',
  31. :password => 'xx',
  32. :paranoid => false,
  33. }
  34. }
  35.  
  36. machine "xx" do
  37. run_list ['xx-linux-base::default', 'xx-apache2::default']
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement