Update SDC instructions
The variables and instructions of SDC script were out of date.
This change includes the usage of "src_folders" variable besides
the simplification of the process.
Change-Id: I557b2a9a2a2ed567003230febfae56a043a2e9e2
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-16
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index 6d7900b..72d73ab 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -45,7 +45,7 @@
:macs => [],
:cpus => 2,
:cpu => "50",
- :ram => 6 * 1024,
+ :ram => 8 * 1024,
:groups => ["individual"],
:args => ["aai"],
:fwds => [
@@ -157,7 +157,7 @@
:ram => 64 * 1024,
:groups => ["individual"],
:args => ["oom"],
- :hd => "60G",
+ :hd => { :virtualbox => "61440", :libvirt => "60G", },
:fwds => [
{ :guest => 8880, :host => 8880, :guest_ip => '192.168.50.21' },
{ :guest => 8989, :host => 8989, :guest_ip => '192.168.50.21' },
@@ -202,7 +202,7 @@
:ram => 8 * 1024,
:groups => ["individual"],
:args => ["sdc"],
- :hd => "20G",
+ :hd => { :virtualbox => "20480", :libvirt => "20G", }
},
{
:name => "sdnc",
@@ -355,6 +355,7 @@
system 'vagrant plugin install vagrant-proxyconf'
raise 'vagrant-proxyconf was installed but it requires to execute again'
end
+ config.proxy.enabled = { docker: false }
config.proxy.http = ENV['http_proxy']
config.proxy.https = ENV['https_proxy']
configuration['socks_proxy'] = ENV['socks_proxy']
@@ -420,7 +421,7 @@
if node.has_key? :hd
volume_file = node[:name] + '-vol1-data.vdi'
unless File.exist?(volume_file)
- vbox.customize ['createhd', '--filename', volume_file, '--size', node[:hd]]
+ vbox.customize ['createmedium', 'disk', '--filename', volume_file, '--size', node[:hd][provider]]
end
vbox.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', volume_file]
end
@@ -442,7 +443,7 @@
# Set Storage
if node.has_key? :hd
- lbox.storage :file, bus: 'sata', device: 'sda', size: node[:hd]
+ lbox.storage :file, bus: 'sata', device: 'sda', size: node[:hd][provider]
end
end
if node.has_key? :fwds