diff options
author | Paul Szymanski <519954+PaulSzymanski@users.noreply.github.com> | 2024-04-11 09:00:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 09:00:10 -0400 |
commit | d1a5035578dbde427408bad572c3b03f395b988a (patch) | |
tree | 5252bcbf23d1c81012b2c476df0427e404cb09f3 | |
parent | eb8c28fc3056fe6110c638cbb1488297a01948d1 (diff) |
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.
-rw-r--r-- | packaging/repoconfig/netdata-edge.repo.al2023 | 21 | ||||
-rw-r--r-- | packaging/repoconfig/netdata-repo.spec | 13 | ||||
-rw-r--r-- | packaging/repoconfig/netdata.repo.al2023 | 21 |
3 files changed, 53 insertions, 2 deletions
diff --git a/packaging/repoconfig/netdata-edge.repo.al2023 b/packaging/repoconfig/netdata-edge.repo.al2023 new file mode 100644 index 0000000000..14290c5e43 --- /dev/null +++ b/packaging/repoconfig/netdata-edge.repo.al2023 @@ -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 diff --git a/packaging/repoconfig/netdata-repo.spec b/packaging/repoconfig/netdata-repo.spec index 3c99b921f1..64f7140e48 100644 --- a/packaging/repoconfig/netdata-repo.spec +++ b/packaging/repoconfig/netdata-repo.spec @@ -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 diff --git a/packaging/repoconfig/netdata.repo.al2023 b/packaging/repoconfig/netdata.repo.al2023 new file mode 100644 index 0000000000..1fb446f00e --- /dev/null +++ b/packaging/repoconfig/netdata.repo.al2023 @@ -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 |