-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
43 lines (36 loc) · 1.38 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.define :'centos7-powercli' do |m|
m.vm.box = 'standorsett/centos-7'
m.vm.box_version = "1707.01"
m.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__args: ["--verbose", "--archive", "--delete", "-z", "--links"]
m.vm.hostname = 'centos7-powercli'
m.vm.provider :vcenter do |vcenter|
vcenter.hostname = '192.168.1.51'
vcenter.username = '[email protected]'
vcenter.password = 'VMware123!'
vcenter.folder_name = 'Vagrant/Deployed'
vcenter.datacenter_name = 'datacenter'
vcenter.computer_name = 'cluster'
vcenter.datastore_name = 'local-datastore'
vcenter.template_folder_name = 'Vagrant/Templates'
vcenter.network_name = 'VM Network'
vcenter.linked_clones = true
vcenter.enable_vm_customization = true
vcenter.num_cpu = 2
vcenter.memory = 4096
end
m.nfs.functional = false
end
config.vm.provision :shell do |shell|
shell.path = "install-powercli-dependencies.sh"
end
config.vm.provision :shell do |shell|
shell.path = "install-powercli.sh"
shell.privileged = false
end
end