Closed sdorsett closed 10 years ago
needs some heavy lifting, moved to v0.4.0
In the meantime, as a workaround, you can use this template to achieve the same result:
nodes = [
{ hostname: 'test1', box: 'gosddc/centos65-x64' },
{ hostname: 'test2', box: 'gosddc/centos65-x64' },
{ hostname: 'test3', box: 'gosddc/centos65-x64' }
]
Vagrant.configure('2') do |config|
# Go through nodes and configure each of them.j
nodes.each do |node|
config.vm.provider :vcenter do |vcenter|
vcenter.hostname = 'vpx.ad.lab.gosddc.com'
vcenter.username = '<username>'
vcenter.password = '<password>'
vcenter.folder_name = 'Vagrant'
vcenter.datacenter_name = 'Go SDDC'
vcenter.computer_name = 'monster.ad.lab.gosddc.com'
vcenter.datastore_name = 'nfs_fas2020_15k_01'
vcenter.template_folder_name = 'Templates/Vagrant'
vcenter.network_name = 'VM Network'
vcenter.linked_clones = true
case node[:hostname]
when 'test1'
vcenter.ipaddress = '10.250.26.61'
when 'test2'
vcenter.ipaddress = '10.250.26.62'
when 'test3'
vcenter.ipaddress = '10.250.26.63'
end
vcenter.netmask = '255.255.0.0'
vcenter.gateway = '10.250.254.254'
vcenter.enable_vm_customization = true
vcenter.prep_type = 'linux'
vcenter.dns_server_list = ['8.8.4.4', '8.8.8.8']
vcenter.dns_suffix_list = ['ad.lab.gosddc.com']
end
config.vm.define node[:hostname] do |node_config|
node_config.vm.box = node[:box]
node_config.vm.hostname = node[:hostname]
node_config.nfs.functional = false
end
end
end
Workaround doesn't work, bugs need to be squashed :)
This very well might be a Vagrantfile configuration issue, but I only seem to be able to assign an IP address, VCPU count & memory in the config.vm.provider section like the following:
Is there way to configure IP address, VCPU count & memory in the node section in order to be able to apply separate values for each of these for different nodes being deployed like with the vmware_fusion provider? The vbrownbag openstack Vagrantfile has an example like the following: