From af3c708a24e585f11685e132cb4e2ed4678fb001 Mon Sep 17 00:00:00 2001 From: Amit Karsale Date: Wed, 17 Apr 2024 12:24:58 +0530 Subject: [PATCH] (VANAGON-242) add amazon linux2 in vanagon --- CHANGELOG.md | 3 +++ lib/vanagon/platform/defaults/amazon-7-x86_64.rb | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 lib/vanagon/platform/defaults/amazon-7-x86_64.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d103d2e..b422aab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](https://semver.org). This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] +### Added +- (VANAGON-242) Add Amazon Linux2 (intel) platform definition to vanagon + ### Fixed - Use URI.parse when selecting the docker target diff --git a/lib/vanagon/platform/defaults/amazon-7-x86_64.rb b/lib/vanagon/platform/defaults/amazon-7-x86_64.rb new file mode 100644 index 00000000..6d3dbff4 --- /dev/null +++ b/lib/vanagon/platform/defaults/amazon-7-x86_64.rb @@ -0,0 +1,10 @@ +platform "amazon-7-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-7-x86_64" +end