vsphere.template_name = 'oracle6-template'
vsphere.linked_clone = false#name of vm to current directory
vm_prefix = "webserver"
#number of vms
vm_number = 1
#ram
vm_ram = 1024
#cpu
vm_cpu = 2
Vagrant.configure("2") do |config|
config.vm.box = 'dummy'
config.vm.box_url = '../dummy.box'
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision "shell", run: "always", inline: "[ -f /etc/udev/rules.d/70-persistent-net.rules ] && rm -fr /etc/udev/rules.d/70-persistent-net.rules"
config.ssh.username = 'root'
config.ssh.password = 'root'
config.ssh.forward_x11 = true
(1..vm_number).each do |i|
config.vm.define vm_name = "#{vm_prefix}%01d" % i do |config|
config.vm.hostname = vm_name
config.vm.provider :vsphere do |vsphere|
vsphere.vm_base_path = 'vagrant-vsphere'
vsphere.name = vm_name
vsphere.template_name = 'oracle6-template'
vsphere.linked_clone = false
vsphere.data_store_name = 'datastore1'
vsphere.memory_mb = vm_ram
vsphere.cpu_count = vm_cpu
vsphere.host = '192.168.1.28'
vsphere.insecure = true
vsphere.compute_resource_name = '192.168.1.30'
vsphere.user = 'admini...@kikitux.net'
vsphere.password = '<password>'
end
end
end
end--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/826a4507-2b3c-43b6-a780-9a415ec64c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/FFAF5F3A-60CF-470D-8B93-3062279A3188%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/FFAF5F3A-60CF-470D-8B93-3062279A3188%40gmail.com.
vsphere.data_store_name = 'datastore1 (1)'