Sha256: 4a2ce51527dc871d5b5368513f719f71ee9a666329c794a124d0c8e422f825c9

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

def set_resources box, max_ram=512, max_cpu=1
  box.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--cpus", max_cpu]
    vb.customize ["modifyvm", :id, "--memory", max_ram]
  end
end

Vagrant.configure('2') do |config|
  config.pe_build.download_root = ENV['PE_BUILD_DOWNLOAD_ROOT']
  # This is the box name used by the setup helpers in the acceptance tests.
  config.vm.box = 'centos'

  config.vm.define 'pe-3x' do |node|
    node.vm.hostname = 'pe-3x.pe-bootstrap.vlan'
    # All-in-one master nodes need a generous amount of RAM for all the Java.
    set_resources node, 4096, 1

    node.vm.provision :pe_bootstrap do |p|
      p.version = '3.8.2'
      p.role = :master
    end
  end

  config.vm.define 'pe-latest' do |node|
    node.vm.hostname = 'pe-latest.pe-bootstrap.vlan'
    # All-in-one master nodes need a generous amount of RAM for all the Java.
    set_resources node, 4096, 1

    node.vm.provision :pe_bootstrap do |p|
      p.version_file  = 'LATEST'
      p.role = :master
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-pe_build-0.13.4 acceptance/skeletons/pe_build/Vagrantfile
vagrant-pe_build-0.13.3 acceptance/skeletons/pe_build/Vagrantfile
vagrant-pe_build-0.13.2 acceptance/skeletons/pe_build/Vagrantfile
vagrant-pe_build-0.13.1 acceptance/skeletons/pe_build/Vagrantfile
vagrant-pe_build-0.13.0 acceptance/skeletons/pe_build/Vagrantfile