Add repo config for Amazon Linux 2023. (#17330)

* Add repo config for Amazon Linux 2023.

dnf and yum resolve $releasever to a verbose release version (e.g. 2023.4.20240401).
However, there is no need to create repositories for every version Amazon comes up with.

Resolves https://github.com/netdata/netdata/issues/17324

* Have a more specific conditional file install (amzn2)

* Bump repo spec release for Amazon Linux changes.
This commit is contained in:
Paul Szymanski 2024-04-11 09:00:10 -04:00 committed by GitHub
parent eb8c28fc30
commit d1a5035578
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 53 additions and 2 deletions

View File

@ -0,0 +1,21 @@
[netdata-edge]
name=Netdata Edge
baseurl=https://repo.netdata.cloud/repos/edge/amazonlinux/2023/$basearch
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
enabled=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=50
[netdata-repoconfig]
name=Netdata Repository Config
baseurl=https://repo.netdata.cloud/repos/repoconfig/amazonlinux/2023/$basearch
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
enabled=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=50

View File

@ -2,7 +2,7 @@
Name: netdata-repo
Version: 2
Release: 2
Release: 3
Summary: Netdata stable repositories configuration.
Group: System Environment/Base
@ -18,6 +18,8 @@ Source6: netdata.repo.ol
Source7: netdata-edge.repo.ol
Source8: netdata.repo.al
Source9: netdata-edge.repo.al
Source10: netdata.repo.al2023
Source11: netdata-edge.repo.al2023
BuildArch: noarch
@ -58,11 +60,16 @@ install -pm 644 %{SOURCE6} ./netdata.repo
install -pm 644 %{SOURCE7} ./netdata-edge.repo
%endif
%if 0%{?amzn}
%if 0%{?amzn2}
install -pm 644 %{SOURCE8} ./netdata.repo
install -pm 644 %{SOURCE9} ./netdata-edge.repo
%endif
%if 0%{?amzn2023}
install -pm 644 %{SOURCE10} ./netdata.repo
install -pm 644 %{SOURCE11} ./netdata-edge.repo
%endif
%build
true
@ -107,6 +114,8 @@ This package contains the official Netdata package repository configuration for
%endif
%changelog
* Wed Apr 10 2024 Paul Szymanski <mail@pszy.de> 2-3
- Fix repo specification for Amazon Linux 2023.
* Mon Nov 13 2023 Austin Hemmelgarn <austin@netdata.cloud> 2-2
- Add EPEL requirement for RHEL packages.
* Wed Dec 7 2022 Austin Hemmelgarn <austin@netdata.cloud> 2-1

View File

@ -0,0 +1,21 @@
[netdata]
name=Netdata
baseurl=https://repo.netdata.cloud/repos/stable/amazonlinux/2023/$basearch
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
enabled=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=50
[netdata-repoconfig]
name=Netdata Repository Config
baseurl=https://repo.netdata.cloud/repos/repoconfig/amazonlinux/2023/$basearch
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
enabled=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=50