X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=Vagrantfile;h=abc29f1e055986713b85168560d5d4dc9d0d2c65;hb=95ca9e9192a22bb3172c373cdb611297fef5cfd6;hp=ced84ef4a853b189610fc7fe3bbb6de265658671;hpb=9f1bec85fd29e358ebbbccfd1406262857c658a1;p=icn.git diff --git a/Vagrantfile b/Vagrantfile index ced84ef..abc29f1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -11,6 +11,7 @@ require 'yaml' # by vagrant from the jump machine definition) is up. site = ENV['ICN_SITE'] || 'vm' +with_jenkins = ENV['WITH_JENKINS'] || false # Calculate the baremetal network address from the bmcAddress (aka # IPMI address) specified in the machine pool values. IPMI in the @@ -70,8 +71,14 @@ Vagrant.configure("2") do |config| libvirt.graphics_ip = '0.0.0.0' libvirt.default_prefix = "#{site}-" libvirt.cpu_mode = 'host-passthrough' - libvirt.cpus = 8 - libvirt.memory = 24576 + if with_jenkins + # With Jenkins and nested VMs increase cpus, memory + libvirt.cpus = 32 + libvirt.memory = 65536 + else + libvirt.cpus = 8 + libvirt.memory = 24576 + end libvirt.nested = true # The ICN baremetal network is the vagrant management network, @@ -114,6 +121,11 @@ Vagrant.configure("2") do |config| DEBIAN_FRONTEND=noninteractive apt-get install -y make SHELL m.vm.post_up_message = $post_up_message + + if with_jenkins + # Set up a port forward for an instance of Jenkins + m.vm.network "forwarded_port", guest: 8080, host: 8080 + end end # Look for any HelmReleases in the site directory with machineName in @@ -163,17 +175,6 @@ Vagrant.configure("2") do |config| trigger.name = 'Removing machine from IPMI network' trigger.run = {inline: "./tools/vagrant/remove_machine_from_vbmc.sh #{site} #{machine_name} #{bmc_port}"} end - - # Create configuration for ICN provisioning - legacy_machine_args = "#{legacy_machine_args} #{machine_name} #{bmc_port}" - m.trigger.after [:up] do |trigger| - trigger.info = 'Creating nodes.json.sample describing the machines' - trigger.run = {inline: "./tools/vagrant/create_nodes_json_sample.sh #{site} #{legacy_machine_args}"} - end - m.trigger.after [:up] do |trigger| - trigger.info = 'Creating Provisioning resource describing the cluster' - trigger.run = {inline: "./tools/vagrant/create_provisioning_cr.sh #{site} #{legacy_machine_args}"} - end end end end