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.
Paul Szymanski committed
Apr 11, 2024 at 09:00 UTC
d1a5035578dbde427408bad572c3b03f395b988a
3 files changed
+53
-2
packaging/repoconfig/netdata-edge.repo.al2023
new
+21
@@ -0,0 +1,21 @@
1
+[netdata-edge]
2
+name=Netdata Edge
3
+baseurl=https://repo.netdata.cloud/repos/edge/amazonlinux/2023/$basearch
4
+repo_gpgcheck=1
5
+gpgcheck=1
6
+gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
7
+enabled=1
8
+sslverify=1
9
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt
10
+priority=50
11
+
12
+[netdata-repoconfig]
13
+name=Netdata Repository Config
14
+baseurl=https://repo.netdata.cloud/repos/repoconfig/amazonlinux/2023/$basearch
15
+repo_gpgcheck=1
16
+gpgcheck=1
17
+gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
18
+enabled=1
19
+sslverify=1
20
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt
21
+priority=50
packaging/repoconfig/netdata-repo.spec
+11
-2
@@ -2,7 +2,7 @@
2
3
Name: netdata-repo
4
Version: 2
5
-Release: 2
5
+Release: 3
6
Summary: Netdata stable repositories configuration.
7
8
Group: System Environment/Base
@@ -18,6 +18,8 @@ Source6: netdata.repo.ol
18
Source7: netdata-edge.repo.ol
19
Source8: netdata.repo.al
20
Source9: netdata-edge.repo.al
21
+Source10: netdata.repo.al2023
22
+Source11: netdata-edge.repo.al2023
23
24
BuildArch: noarch
25
@@ -58,11 +60,16 @@ install -pm 644 %{SOURCE6} ./netdata.repo
60
install -pm 644 %{SOURCE7} ./netdata-edge.repo
61
%endif
62
61
-%if 0%{?amzn}
63
+%if 0%{?amzn2}
64
install -pm 644 %{SOURCE8} ./netdata.repo
65
install -pm 644 %{SOURCE9} ./netdata-edge.repo
66
%endif
67
68
+%if 0%{?amzn2023}
69
+install -pm 644 %{SOURCE10} ./netdata.repo
70
+install -pm 644 %{SOURCE11} ./netdata-edge.repo
71
+%endif
72
+
73
%build
74
true
75
@@ -107,6 +114,8 @@ This package contains the official Netdata package repository configuration for
114
%endif
115
116
%changelog
117
+* Wed Apr 10 2024 Paul Szymanski <mail@pszy.de> 2-3
118
+- Fix repo specification for Amazon Linux 2023.
119
* Mon Nov 13 2023 Austin Hemmelgarn <austin@netdata.cloud> 2-2
120
- Add EPEL requirement for RHEL packages.
121
* Wed Dec 7 2022 Austin Hemmelgarn <austin@netdata.cloud> 2-1
packaging/repoconfig/netdata.repo.al2023
new
+21
@@ -0,0 +1,21 @@
1
+[netdata]
2
+name=Netdata
3
+baseurl=https://repo.netdata.cloud/repos/stable/amazonlinux/2023/$basearch
4
+repo_gpgcheck=1
5
+gpgcheck=1
6
+gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
7
+enabled=1
8
+sslverify=1
9
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt
10
+priority=50
11
+
12
+[netdata-repoconfig]
13
+name=Netdata Repository Config
14
+baseurl=https://repo.netdata.cloud/repos/repoconfig/amazonlinux/2023/$basearch
15
+repo_gpgcheck=1
16
+gpgcheck=1
17
+gpgkey=https://repo.netdata.cloud/netdatabot.gpg.key
18
+enabled=1
19
+sslverify=1
20
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt
21
+priority=50