From d6de84384d1b0a81a2d688d41d02230ba6a29685 Mon Sep 17 00:00:00 2001 From: Maqsood Ahmad Date: Thu, 18 Apr 2024 16:01:54 +0530 Subject: [PATCH] (VANAGON-242) Add Amazon Linux2 ARM platform definition to vanagon --- CHANGELOG.md | 2 ++ lib/vanagon/platform/defaults/amazon-7-aarch64.rb | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lib/vanagon/platform/defaults/amazon-7-aarch64.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d103d2e..c81d9da5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] ### Fixed - Use URI.parse when selecting the docker target +### Added +- (VANAGON-242) Add Amazon Linux2 ARM platform definition to vanagon ## [0.48.0] - 2024-04-16 ### Added diff --git a/lib/vanagon/platform/defaults/amazon-7-aarch64.rb b/lib/vanagon/platform/defaults/amazon-7-aarch64.rb new file mode 100644 index 00000000..4c962ec8 --- /dev/null +++ b/lib/vanagon/platform/defaults/amazon-7-aarch64.rb @@ -0,0 +1,10 @@ +platform "amazon-7-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("yum install -y --nogpgcheck #{packages.join(' ')}") + plat.install_build_dependencies_with "yum install --assumeyes" + plat.vmpooler_template "amazon-7-arm64" +end