Last active
August 29, 2015 14:25
-
-
Save rj-reilly/984d96ace473be6f9ab4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment