@cryptotaxi247 / netdata-1 / commits / 69d6b7f0e

Support nativa packages for openSUSE tumbleweed (#14692)

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Tasos Katsoulas committed Jul 17, 2023 at 14:54 UTC 69d6b7f0ed1416cc7241b76b6220dfcf31a1fb6a
5 files changed +43 -19
.github/data/distros.yml
+9 -3
@@ -164,14 +164,14 @@ include:
164
165 - &opensuse
166 distro: opensuse
167 - version: "15.4"
167 + version: "tumbleweed"
168 eol_check: true
169 - base_image: opensuse/leap:15.4
169 + base_image: opensuse/tumbleweed
170 jsonc_removal: |
171 zypper rm -y libjson-c-devel
172 packages: &opensuse_packages
173 type: rpm
174 - repo_distro: opensuse/15.4
174 + repo_distro: opensuse/tumbleweed
175 arches:
176 - x86_64
177 - aarch64
@@ -183,6 +183,12 @@ include:
183 packages:
184 <<: *opensuse_packages
185 repo_distro: opensuse/15.5
186 + - <<: *opensuse
187 + version: "15.4"
188 + base_image: opensuse/leap:15.4
189 + packages:
190 + <<: *opensuse_packages
191 + repo_distro: opensuse/15.4
192
193 - &oracle
194 distro: oraclelinux
packaging/PLATFORM_SUPPORT.md
+9 -8
@@ -90,14 +90,15 @@ platforms that we officially support ourselves to the intermediate tier. Our [st
90 expected to work on these platforms if available. Source-based installs are expected to work on these platforms
91 with minimal user effort.
92
93 -| Platform | Version | Official Native Packages | Notes |
94 -|---------------|---------|--------------------------|------------------------------------------------------------------------------------------------------|
95 -| Alpine Linux | 3.16 | No | |
96 -| Alpine Linux | 3.15 | No | |
97 -| Amazon Linux | 2023 | x86\_64, AArch64 | Scheduled for promotion to Core tier at some point after the release of v1.39.0 of the Netdata Agent |
98 -| Amazon Linux | 2 | x86\_64, AArch64 | Scheduled for promotion to Core tier at some point after the release of v1.39.0 of the Netdata Agent |
99 -| Arch Linux | Latest | No | We officially recommend the community packages available for Arch Linux |
100 -| Manjaro Linux | Latest | No | We officially recommend the community packages available for Arch Linux |
93 +| Platform | Version | Official Native Packages | Notes |
94 +|---------------|------------|--------------------------|------------------------------------------------------------------------------------------------------|
95 +| Alpine Linux | 3.16 | No | |
96 +| Alpine Linux | 3.15 | No | |
97 +| Amazon Linux | 2023 | x86\_64, AArch64 | Scheduled for promotion to Core tier at some point after the release of v1.39.0 of the Netdata Agent |
98 +| Amazon Linux | 2 | x86\_64, AArch64 | Scheduled for promotion to Core tier at some point after the release of v1.39.0 of the Netdata Agent |
99 +| Arch Linux | Latest | No | We officially recommend the community packages available for Arch Linux |
100 +| Manjaro Linux | Latest | No | We officially recommend the community packages available for Arch Linux |
101 +| openSUSE | Tumbleweed | x86\_64, AArch64 | Scheduled for promotion to Core tier at some point after the release of v1.41.0 of the Netdata Agent |
102
103 ### Community
104
packaging/installer/install-required-packages.sh
+8 -3
@@ -180,10 +180,15 @@ get_os_release() {
180 eval "$(grep -E "^(NAME|ID|ID_LIKE|VERSION|VERSION_ID)=" "${os_release_file}")"
181 for x in "${ID}" ${ID_LIKE}; do
182 case "${x,,}" in
183 - almalinux | alpine | arch | centos | clear-linux-os | debian | fedora | gentoo | manjaro | opensuse-leap | ol | rhel | rocky | sabayon | sles | suse | ubuntu)
183 + almalinux | alpine | arch | centos | clear-linux-os | debian | fedora | gentoo | manjaro | opensuse-leap | opensuse-tumbleweed | ol | rhel | rocky | sabayon | sles | suse | ubuntu)
184 distribution="${x}"
185 - version="${VERSION_ID}"
186 - codename="${VERSION}"
185 + if [ "${ID}" = "opensuse-tumbleweed" ]; then
186 + version="tumbleweed"
187 + codename="tumbleweed"
188 + else
189 + version="${VERSION_ID}"
190 + codename="${VERSION}"
191 + fi
192 detection="${os_release_file}"
193 break
194 ;;
packaging/installer/kickstart.sh
+16 -4
@@ -674,10 +674,22 @@ get_system_info() {
674 DISTRO_COMPAT_NAME="${DISTRO}"
675 else
676 case "${DISTRO}" in
677 - opensuse-leap) DISTRO_COMPAT_NAME="opensuse" ;;
678 - cloudlinux|almalinux|rocky|rhel) DISTRO_COMPAT_NAME="centos" ;;
679 - artix|manjaro|obarun) DISTRO_COMPAT_NAME="arch" ;;
680 - *) DISTRO_COMPAT_NAME="unknown" ;;
677 + opensuse-leap)
678 + DISTRO_COMPAT_NAME="opensuse"
679 + ;;
680 + opensuse-tumbleweed)
681 + DISTRO_COMPAT_NAME="opensuse"
682 + SYSVERSION="tumbleweed"
683 + ;;
684 + cloudlinux|almalinux|rocky|rhel)
685 + DISTRO_COMPAT_NAME="centos"
686 + ;;
687 + artix|manjaro|obarun)
688 + DISTRO_COMPAT_NAME="arch"
689 + ;;
690 + *)
691 + DISTRO_COMPAT_NAME="unknown"
692 + ;;
693 esac
694 fi
695
packaging/installer/netdata-updater.sh
+1 -1
@@ -732,7 +732,7 @@ update_binpkg() {
732 DISTRO_COMPAT_NAME="${DISTRO}"
733 else
734 case "${DISTRO}" in
735 - opensuse-leap)
735 + opensuse-leap|opensuse-tumbleweed)
736 DISTRO_COMPAT_NAME="opensuse"
737 ;;
738 cloudlinux|almalinux|rocky|rhel)