-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile_pro
32 lines (31 loc) · 1.15 KB
/
Vagrantfile_pro
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
VAGRANTFILE_API_VERSION = '2'
%w{AC_USERNAME AC_PASSWORD}.each do |var|
abort "Please set the environment variable #{var} in order to run the test" unless ENV.key? var
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "dummy"
config.vm.define :vmvgr01 do |vmvgr01_config|
vmvgr01_config.ssh.username = 'root'
vmvgr01_config.ssh.password = 'test123'
vmvgr01_config.vm.synced_folder ".", "/vagrant", disabled: true
vmvgr01_config.vm.synced_folder "/hostshare2", "/guestshare_norm"
vmvgr01_config.vm.provision "shell" do |s|
s.inline = "echo 'test start script ok'"
end
vmvgr01_config.vm.provider :arubacloud do |ac, ac_override|
ac_override.nfs.functional = false # no nfs start
ac.arubacloud_username = ENV['AC_USERNAME']
ac.arubacloud_password = ENV['AC_PASSWORD']
#
ac.service_type = 2
ac.endpoint = "dc2"
ac.cpu_number = 2
ac.ram_qty = 6
ac.hds = [{:type => 0, :size => 20}, {:type => 1, :size => 30}]
#
# CentOS 7.x 64bit with pro VmWare
ac.template_id = '691'
ac.server_name = 'lnxprotstvag2'
end
end
end