[8.14] [artifacts/package-testing] Fix rpm install (#183143) (#183170)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[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>
This commit is contained in:
Kibana Machine 2024-05-10 13:17:25 -04:00 committed by GitHub
parent 02e4619dd9
commit dc09fa5e30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,9 @@ Vagrant.configure("2") do |config|
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