Sha256: 7e8c1a4233b824ea713a11b9ea0b6145c9affbbef00aabcb52f6916da202baa7

Contents?: true

Size: 1.51 KB

Versions: 18

Compression:

Stored size: 1.51 KB

Contents

# NOTE: This acceptance suite actually uses 2016.1 as 2015.2 and 2015.3 shared
# the same installation workflow.
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']
  config.ssh.insert_key = false

  config.vm.define 'pe-20161-master' do |node|
    node.vm.hostname = 'pe-20161-master.pe-bootstrap.vlan'
    node.vm.box      = 'centos'
    # All-in-one master nodes need a generous amount of RAM for all the Java.
    set_resources node, 4096, 1
    node.vm.provision :shell, :inline => 'service iptables stop'

    node.vm.network 'private_network', :ip => '10.20.1.100'
    node.vm.provision :shell, :inline => 'echo "10.20.1.101 pe-20161-agent.pe-bootstrap.vlan" >> /etc/hosts'

    node.vm.provision :pe_bootstrap do |p|
      p.version = '2016.1.2'
      p.role = :master
      # Set autosign to false so that we can test pe_agent functionality.
      p.autosign = false
    end
  end

  config.vm.define 'pe-20161-agent' do |node|
    node.vm.hostname = 'pe-20161-agent.pe-bootstrap.vlan'
    node.vm.box      = 'ubuntu'

    node.vm.network 'private_network', :ip => '10.20.1.101'
    node.vm.provision :shell, :inline => 'echo "10.20.1.100 pe-20161-master.pe-bootstrap.vlan" >> /etc/hosts'

    node.vm.provision :pe_agent do |p|
      p.master_vm = 'pe-20161-master'
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vagrant-pe_build-0.17.12 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.11 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.10 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.9 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.8 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.7 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.6 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.5 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.4 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.3 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.2 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.1 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.17.0 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.16.0 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.15.6 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.15.5 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.15.4 acceptance/skeletons/2015x_acceptance/Vagrantfile
vagrant-pe_build-0.15.3 acceptance/skeletons/2015x_acceptance/Vagrantfile