Skip to content

Commit

Permalink
Merge pull request #821 from span786/VANAGON-231-add-amazon-linux-202…
Browse files Browse the repository at this point in the history
…3-platform-definition-to-vanagon

(VANAGON-231) : Added amazon linux 2023 platform for intel & arm
  • Loading branch information
span786 authored Oct 25, 2023
2 parents d67f510 + 5f563cc commit 79e113f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/vanagon/platform/defaults/amazon-2023-aarch64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
platform "amazon-2023-aarch64" do |plat|
plat.servicedir "/usr/lib/systemd/system"
plat.defaultdir "/etc/sysconfig"
plat.servicetype "systemd"

packages = %w(autoconf automake createrepo gcc gcc-c++ rsync cmake make rpm-libs rpm-build libarchive)
plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
plat.install_build_dependencies_with "dnf install -y --allowerasing "
plat.vmpooler_template "amazon-2023-arm64"
end
10 changes: 10 additions & 0 deletions lib/vanagon/platform/defaults/amazon-2023-x86_64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
platform "amazon-2023-x86_64" do |plat|
plat.servicedir "/usr/lib/systemd/system"
plat.defaultdir "/etc/sysconfig"
plat.servicetype "systemd"

packages = %w(gcc gcc-c++ autoconf automake createrepo rsync cmake make rpm-libs rpm-build rpm-sign libtool libarchive)
plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
plat.install_build_dependencies_with "dnf install -y --allowerasing "
plat.vmpooler_template "amazon-2023-x86_64"
end
2 changes: 1 addition & 1 deletion lib/vanagon/platform/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def platform(platform_name, override_name: false, &block)
@platform = case platform_name
when /^aix-/
Vanagon::Platform::RPM::AIX.new(@name)
when /^(cisco-wrlinux|el|fedora|redhat|redhatfips)-/
when /^(amazon|cisco-wrlinux|el|fedora|redhat|redhatfips)-/
Vanagon::Platform::RPM.new(@name)
when /^sles-/
Vanagon::Platform::RPM::SLES.new(@name)
Expand Down

0 comments on commit 79e113f

Please sign in to comment.