logstash/qa/Vagrantfile
Pere Urbon-Bayes 21777bae40 Collection of small bootstrap related fixes like
* make sure downloaded logstashes use the new (arch independant files name)
* add specific privileged bootstrap script for debian 8 that is able to install java8 for this distro
* wrap the bootstrap scripts within the platform class, like this logic is in one specific place to select platform specific components
* add platform specific bootstrap file for sles-12 and also scripts to download latest logstash rpm version
* add custom bootstrap script for ubuntu-1404 to be sure it loads all ca certificates into the system
* make the necessary changes to compile with the new package system
* correct logstash path usage
* remove unnecessary dependancy to rake inside the acceptance test framework
* fix script execution under ubuntu environments, making sure it runs on bash

Fixes #5350
2016-06-02 14:37:15 +00:00

28 lines
721 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
require_relative "./platform_config.rb"
Vagrant.configure(2) do |config|
platforms = PlatformConfig.new
platforms.each do |platform|
config.vm.define platform.name do |machine|
machine.vm.box = platform.box
machine.vm.provider "virtualbox" do |v|
v.memory = 2096
v.cpus = 4
end
machine.vm.synced_folder "../build", "/logstash-build", create: true
machine.vm.provision :shell do |sh|
sh.path = platform.bootstrap.privileged
sh.privileged = true
end
machine.vm.provision :shell do |sh|
sh.path = platform.bootstrap.non_privileged
sh.privileged = false
end
end
end
end