From 5ab7c66dde40e3d8cdcc1488e0c7c567af41dc8e Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Mon, 3 Jun 2024 09:30:49 -0700 Subject: [PATCH] Copy amazon-7 to amazon-2 We're intentionally continuing to use the amazon-7-arm64 VM template --- CHANGELOG.md | 2 ++ lib/vanagon/platform/defaults/amazon-2-aarch64.rb | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lib/vanagon/platform/defaults/amazon-2-aarch64.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b2a7c2e..b0a1dcee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org). This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] +### Added +- Add Amazon 2 (ARM) platform definition to vanagon ## [0.51.0] - 2024-05-31 ### Added diff --git a/lib/vanagon/platform/defaults/amazon-2-aarch64.rb b/lib/vanagon/platform/defaults/amazon-2-aarch64.rb new file mode 100644 index 00000000..9638981d --- /dev/null +++ b/lib/vanagon/platform/defaults/amazon-2-aarch64.rb @@ -0,0 +1,10 @@ +platform "amazon-2-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 cmake3 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