Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chef_gem 'chef-provisioning-vsphere' do
- action :install
- compile_time true
- end
- require 'chef/provisioning/vsphere_driver'
- with_vsphere_driver host: 'xx.xxx.com',
- insecure: true,
- user: 'admin',
- password: 'xx'
- with_machine_options :bootstrap_options => {
- use_linked_clone: true,
- num_cpus: 2,
- memory_mb: 4096,
- network_name: 'VM-DATA-41',
- datacenter: 'xx',
- resource_pool: 'DEV-QA-01',
- template_folder: 'Templates/Linux',
- template_name: 'RHEL-BASE-6.6',
- vm_folder: 'xx/Infrastructure/Test/',
- customization_spec: {
- ipsettings: {
- dnsServerList: ['xx','xx']
- },
- :domain => 'xx.xx.net'
- },
- :ssh => {
- :user => 'root',
- :password => 'xx',
- :paranoid => false,
- }
- }
- machine "xx" do
- run_list ['xx-linux-base::default', 'xx-apache2::default']
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement