diff --git a/lib/vanagon/platform/defaults/amazon-2023-aarch64.rb b/lib/vanagon/platform/defaults/amazon-2023-aarch64.rb new file mode 100644 index 00000000..aa87443e --- /dev/null +++ b/lib/vanagon/platform/defaults/amazon-2023-aarch64.rb @@ -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 diff --git a/lib/vanagon/platform/defaults/amazon-2023-x86_64.rb b/lib/vanagon/platform/defaults/amazon-2023-x86_64.rb new file mode 100644 index 00000000..99ee5c9b --- /dev/null +++ b/lib/vanagon/platform/defaults/amazon-2023-x86_64.rb @@ -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 diff --git a/lib/vanagon/platform/dsl.rb b/lib/vanagon/platform/dsl.rb index 34b3cb64..b580fd62 100644 --- a/lib/vanagon/platform/dsl.rb +++ b/lib/vanagon/platform/dsl.rb @@ -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)