Build VM e2etest site values
[icn.git] / Vagrantfile
index f3c700e..282dcde 100644 (file)
@@ -21,7 +21,8 @@ To get started with ICN:
   $ vagrant ssh jump
   vagrant@jump:~$ sudo su
   root@jump:/home/vagrant# cd /icn
-  root@jump:/home/vagrant# make install
+  root@jump:/icn# make jump_server
+  root@jump:/icn# make cluster
 
 ------------------------------------------------------
 MSG
@@ -42,6 +43,7 @@ Vagrant.configure("2") do |config|
   config.vm.define 'jump' do |m|
     # Note the apparent typo in the name below, it is correct as-is
     m.vm.box = 'intergratedcloudnative/ubuntu1804'
+    m.vm.box_version = '1.0.0'
     m.vm.hostname = 'jump'
     m.vm.synced_folder '.', '/icn'
     m.vm.provider :libvirt do |libvirt|
@@ -49,7 +51,7 @@ Vagrant.configure("2") do |config|
       libvirt.default_prefix = "#{vars[:site]}-"
       libvirt.cpu_mode = 'host-passthrough'
       libvirt.cpus = 8
-      libvirt.memory = 16384
+      libvirt.memory = 24576
       libvirt.nested = true
 
       # The ICN baremetal network is the vagrant management network,
@@ -145,6 +147,10 @@ Vagrant.configure("2") do |config|
           trigger.run = {inline: "./tools/vagrant/create_provisioning_cr.sh #{vars[:num_machines]} #{vars[:site]} machine-"}
         end
       end
+      m.trigger.after [:up] do |trigger|
+        trigger.name = 'Creating machine resource'
+        trigger.run = {inline: "./tools/vagrant/create_machine_resource.sh #{i} #{vars[:site]} machine-#{i}"}
+      end
     end
   end
 end