import rust-afterburn-5.4.1-1.el9

This commit is contained in:
CentOS Sources 2023-03-28 12:00:12 +00:00 committed by Stepan Oksanichenko
parent 5dfb933d9a
commit 3092f0e559
4 changed files with 47 additions and 8 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/afterburn-5.2.0-vendor.tar.gz
SOURCES/afterburn-5.2.0.crate
SOURCES/afterburn-5.4.1-vendor.tar.gz
SOURCES/afterburn-5.4.1.crate

View File

@ -1,2 +1,2 @@
72aa32a2d77c1de282ea6d78e9f7b6c1d40cf3ac SOURCES/afterburn-5.2.0-vendor.tar.gz
481027f7891bde4e3679c84859459bf5341b5a74 SOURCES/afterburn-5.2.0.crate
55e6b9fbffca79e2e0011a480215b90a40ec946c SOURCES/afterburn-5.4.1-vendor.tar.gz
115df2e902efcdda7f2cb85aa04a1bda978be7f0 SOURCES/afterburn-5.4.1.crate

View File

@ -0,0 +1,20 @@
diff --git a/src/metadata.rs b/src/metadata.rs
index ececef15e11e..36f556789159 100644
--- a/src/metadata.rs
+++ b/src/metadata.rs
@@ -49,6 +49,7 @@ pub fn fetch_metadata(provider: &str) -> Result<Box<dyn providers::MetadataProvi
match provider {
"aliyun" => box_result!(AliyunProvider::try_new()?),
"aws" => box_result!(AwsProvider::try_new()?),
+ "ec2" => box_result!(AwsProvider::try_new()?),
"azure" => box_result!(Azure::try_new()?),
"azurestack" => box_result!(AzureStack::try_new()?),
"cloudstack-metadata" => box_result!(CloudstackNetwork::try_new()?),
@@ -56,6 +57,7 @@ pub fn fetch_metadata(provider: &str) -> Result<Box<dyn providers::MetadataProvi
"digitalocean" => box_result!(DigitalOceanProvider::try_new()?),
"exoscale" => box_result!(ExoscaleProvider::try_new()?),
"gcp" => box_result!(GcpProvider::try_new()?),
+ "gce" => box_result!(GcpProvider::try_new()?),
// IBM Cloud - VPC Generation 2.
"ibmcloud" => box_result!(IBMGen2Provider::try_new()?),
// IBM Cloud - Classic infrastructure.

View File

@ -7,15 +7,18 @@
%global crate afterburn
Name: rust-%{crate}
Version: 5.2.0
Release: 2%{?dist}
Summary: Simple cloud provider agent
Version: 5.4.1
Release: 1%{?dist}
Summary: Simple cloud provider agent (RHEL CoreOS only)
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/afterburn
Source0: %{crates_source}
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
# Re-add support for "ec2" and "gce" providers, since RHCOS nodes installed
# from OCP 4.1 and 4.2 bootimages still call them by those names
Patch0: legacy-providers.patch
ExclusiveArch: %{rust_arches}
%if 0%{?rhel} && !0%{?eln}
@ -31,7 +34,12 @@ BuildRequires: rust-packaging
BuildRequires: systemd
%global _description %{expand:
Simple cloud provider agent.}
This software is currently only supported on RHEL CoreOS.
Afterburn is a one-shot agent for cloud-like platforms which interacts with
provider-specific metadata endpoints. It is typically used in conjunction
with Ignition.
}
%description %{_description}
@ -139,6 +147,17 @@ cp -a dracut/* %{buildroot}%{dracutmodulesdir}
%endif
%changelog
* Mon Feb 06 2023 Benjamin Gilbert <bgilbert@redhat.com> - 5.4.1-1
- New release
- Re-add support for "ec2" and "gce" providers (removed in 5.0.0)
* Mon Jan 9 2023 Steven Presti <spresti@redhat.com> - 5.3.0-2
- Update description and summary to indicate this package is
only supported on RHEL CoreOS.
* Mon May 2 2022 Sohan Kunkerkar <skunkerk@redhat.com> - 5.3.0-1
- Update to 5.3.0
* Wed Mar 09 2022 Timothée Ravier <tim@siosm.fr> - 5.2.0-2
- Remove Windows binaries from vendor tarball