-
Notifications
You must be signed in to change notification settings - Fork 88
/
el-9-x86_64.rb
40 lines (36 loc) · 996 Bytes
/
el-9-x86_64.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
platform "el-9-x86_64" do |plat|
plat.servicedir "/usr/lib/systemd/system"
plat.defaultdir "/etc/sysconfig"
plat.servicetype "systemd"
# Temporary fix until new rhel 9 image is built
if File.exist?("/etc/yum.repos.d/localmirror-appstream.repo")
plat.provision_with("sed -i 's/beta-x86_64\\/baseos\\/x86_64/base/' /etc/yum.repos.d/localmirror-baseos.repo; sed -i 's/beta-x86_64\\/appstream\\/x86_64/appstream/' /etc/yum.repos.d/localmirror-appstream.repo")
end
packages = %w(
gcc
gcc-c++
autoconf
automake
createrepo
rsync
cmake
make
rpm-libs
rpm-build
rpm-sign
libtool
libarchive
libsepol
libsepol-devel
pkgconfig
readline-devel
rpmdevtools
swig
systemtap-sdt-devel
yum-utils
zlib-devel
)
plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
plat.install_build_dependencies_with "dnf install -y --allowerasing "
plat.vmpooler_template "redhat-9-x86_64"
end