Advertisement
Guest User

Untitled

a guest
Mar 15th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 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: '192.168.1.4',
  9. insecure: true,
  10. user: 'administrator@vsphere.local',
  11. password: 'xxx'
  12.  
  13. with_machine_options :bootstrap_options => {
  14. use_linked_clone: true,
  15. num_cpus: 2,
  16. memory_mb: 4096,
  17. network_name: ["VM Network"],
  18. datacenter: 'redding',
  19. resource_pool: 'Prod',
  20. template_folder: 'Templates',
  21. template_name: 'ubuntu1604',
  22. customization_spec: {
  23. ipsettings: {
  24. dnsServerList: ['192.168.1.1']
  25. },
  26. :domain => 'local'
  27. },
  28. :ssh => {
  29. :user => 'root',
  30. :password => 'xxx',
  31. :paranoid => false,
  32. }
  33. }
  34.  
  35. machine "jenkins" do
  36. run_list ['app_jenkins::build_dev']
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement