kibana/test/package/Vagrantfile
Kibana Machine c26eaa1f33
[7.17] [artifacts/package-testing] Fix rpm install (#183143) (#183169)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[artifacts/package-testing] Fix rpm install
(#183143)](https://github.com/elastic/kibana/pull/183143)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2024-05-10T15:57:53Z","message":"[artifacts/package-testing]
Fix rpm install (#183143)\n\nThe version of rpm installed with almalinux
9.4 isn't able to install\r\nfrom a shared folder. This downgrades to
9.3 while we wait for a
fix.\r\n\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4281","sha":"37412c2b6bd70788c61d15babd8f800e2788a170","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.15.0"],"title":"[artifacts/package-testing]
Fix rpm
install","number":183143,"url":"https://github.com/elastic/kibana/pull/183143","mergeCommit":{"message":"[artifacts/package-testing]
Fix rpm install (#183143)\n\nThe version of rpm installed with almalinux
9.4 isn't able to install\r\nfrom a shared folder. This downgrades to
9.3 while we wait for a
fix.\r\n\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4281","sha":"37412c2b6bd70788c61d15babd8f800e2788a170"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/183143","number":183143,"mergeCommit":{"message":"[artifacts/package-testing]
Fix rpm install (#183143)\n\nThe version of rpm installed with almalinux
9.4 isn't able to install\r\nfrom a shared folder. This downgrades to
9.3 while we wait for a
fix.\r\n\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4281","sha":"37412c2b6bd70788c61d15babd8f800e2788a170"}}]}]
BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
2024-05-10 11:44:43 -05:00

42 lines
1.3 KiB
Ruby

Vagrant.configure("2") do |config|
config.vm.synced_folder '../../target/', '/packages', SharedFoldersEnableSymlinksCreate: false
config.vm.boot_timeout = 600
config.vm.define "deb" do |deb|
deb.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.cpus = 2
end
deb.vm.box = 'ubuntu/jammy64'
deb.vm.provision "ansible" do |ansible|
ansible.playbook = "deb.yml"
end
deb.vm.network "private_network", ip: "192.168.56.5"
end
config.vm.define "rpm" do |rpm|
rpm.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.cpus = 2
end
rpm.vm.box = 'almalinux/9'
# `rpm -i` is broken in 9.4 when installing from a shared folder
# alternative workaround is to copy /packages/kibana.tar.gz to the cwd
rpm.vm.box_version = '9.3.20231118'
rpm.vm.provision "ansible" do |ansible|
ansible.playbook = "rpm.yml"
end
rpm.vm.network "private_network", ip: "192.168.56.6"
end
config.vm.define "docker" do |docker|
docker.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.cpus = 2
end
docker.vm.box = 'ubuntu/jammy64'
docker.vm.provision "ansible" do |ansible|
ansible.playbook = "docker.yml"
end
docker.vm.network "private_network", ip: "192.168.56.7"
end
end