Skip to content

Commit 435b440

Browse files
authored
Remove deployment support for Debian versions that reached EOL (#5804)
* Remove EOL Debian deployment support and tests * Remove debian buster leftover
1 parent eb468ee commit 435b440

File tree

24 files changed

+15
-304
lines changed

24 files changed

+15
-304
lines changed

.github/workflows/ansible.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ jobs:
7070
- amazonlinux2023
7171
- centos8
7272
- centos9
73-
- debian9
74-
- debian10
7573
- debian11
7674
- debian12
7775
- opensuse12

.github/workflows/puppet-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
distro=$(for d in $dockerfiles; do echo -n "\"$d\","; done)
7373
puppet_release='"6","7","8"'
7474
with_instrumentation='"true","false"'
75-
exclude='{"DISTRO": "debian-stretch", "PUPPET_RELEASE": "8"}, {"DISTRO": "ubuntu-xenial", "PUPPET_RELEASE": "8"}' # puppet 8 not supported for these distros
75+
exclude='{"DISTRO": "ubuntu-xenial", "PUPPET_RELEASE": "8"}' # puppet 8 not supported for this distro
7676
matrix="{\"DISTRO\": [${distro%,}], \"PUPPET_RELEASE\": [${puppet_release}], \"WITH_INSTRUMENTATION\": [${with_instrumentation}], \"exclude\": [${exclude}]}"
7777
echo "$matrix" | jq
7878
echo "matrix=${matrix}" >> $GITHUB_OUTPUT

deployments/ansible/molecule/config/vagrant.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ platforms:
1313
box: ubuntu/focal64
1414
- name: centos8
1515
box: centos/8
16-
- name: buster64
17-
box: debian/buster64
16+
- name: bookworm64
17+
box: debian/bookworm64
1818
- name: amazonlinux
1919
box: bento/amazonlinux-2
2020
provisioner:

deployments/ansible/molecule/default/Dockerfile.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{% if item.image not in ["opensuse12", "opensuse15", "centos9"] %}
22
FROM geerlingguy/docker-{{ item.image }}-ansible:latest
3-
{% if item.image == "debian9" %}
4-
RUN sed -i 's|http://.*.debian.org|http://archive.debian.org|' /etc/apt/sources.list
5-
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
6-
{% endif %}
73
{% elif item.image == "centos9" %}
84
FROM quay.io/centos/centos:stream9
95
ENV container docker

deployments/ansible/roles/collector/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ which allows setting up a proxy to download the collector binaries.
174174
(**default:** `false`)
175175

176176
- `td_agent_version`: Version of td-agent (fluentd package) that will be
177-
installed (**default:** `3.7.1` for Debian stretch and `4.3.2` for other
178-
distros)
177+
installed (**default:** `4.3.2`)
179178

180179
- `splunk_fluentd_config`: Path to the fluentd config file on the remote host.
181180
(**default:** `/etc/otel/collector/fluentd/fluent.conf` on Linux,

deployments/ansible/roles/collector/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ start_service: true
4040
splunk_skip_repo: false
4141

4242
# Explicitly set version of td-agent,
43-
# By default: 3.7.1 for Debian stretch and 4.3.2 for other distros.
43+
# By default: 4.3.2
4444
td_agent_version: ""
4545

4646
# Default path on Linux: "/etc/otel/collector/fluentd/fluent.conf".

deployments/ansible/roles/collector/tasks/linux_install_fluentd.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
td_agent_version: |-
77
{%- if td_agent_version -%}
88
{{ td_agent_version }}
9-
{%- elif ansible_distribution_release == "stretch" -%}
10-
3.7.1-0
119
{%- elif ansible_os_family == "Debian" -%}
1210
4.3.2-1
1311
{%- else -%}

deployments/chef/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ required `splunk_access_token` attribute and some optional attributes:
160160

161161
- `fluentd_version`: Version of the [td-agent](
162162
https://www.fluentd.org/download) (Fluentd) package to install (**default:**
163-
`3.7.1` for Debian stretch, and `4.3.1` for all other Linux distros and
164-
Windows)
163+
`4.3.1` for all Linux distros and Windows)
165164

166165
- `fluentd_config_source`: Source path to the Fluentd config file. This file
167166
will be copied to the `fluentd_config_dest` path on the node. See the

deployments/chef/attributes/default.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626

2727
default['splunk_otel_collector']['with_fluentd'] = false
2828
default['splunk_otel_collector']['fluentd_version'] = if platform_family?('debian')
29-
case node['lsb']['codename']
30-
when 'stretch'
31-
'3.7.1-0'
32-
else
33-
'4.3.2-1'
34-
end
29+
'4.3.2-1'
3530
else
3631
'4.3.2'
3732
end

deployments/chef/kitchen.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ platforms:
4141
image: dokken/rockylinux-9
4242
pid_one_command: /usr/lib/systemd/systemd
4343

44-
- name: debian-9
45-
driver:
46-
image: dokken/debian-9
47-
intermediate_instructions: |
48-
RUN sed -i 's|http://.*.debian.org|http://archive.debian.org|' /etc/apt/sources.list
49-
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
50-
pid_one_command: /bin/systemd
51-
52-
- name: debian-10
53-
driver:
54-
image: dokken/debian-10
55-
pid_one_command: /bin/systemd
56-
5744
- name: debian-11
5845
driver:
5946
image: dokken/debian-11

deployments/puppet/manifests/params.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Class for default param values based on OS
22
class splunk_otel_collector::params {
33
$fluentd_version_default = '4.3.2'
4-
$fluentd_version_stretch = '3.7.1-0'
54
$collector_additional_env_vars = {}
65

76
if $facts['os']['family'] == 'redhat' or $facts['os']['family'] == 'debian' or $facts['os']['family'] == 'suse' {
@@ -14,10 +13,7 @@
1413
$collector_config_dest = $collector_config_source
1514
$fluentd_base_url = 'https://packages.treasuredata.com'
1615
if $facts['os']['family'] == 'debian' {
17-
$fluentd_version = downcase($facts['os']['distro']['codename']) ? {
18-
'stretch' => $fluentd_version_stretch,
19-
default => "${fluentd_version_default}-1",
20-
}
16+
$fluentd_version = "${fluentd_version_default}-1"
2117
} else {
2218
$fluentd_version = $fluentd_version_default
2319
}

deployments/salt/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ splunk-otel-collector:
126126

127127
- `td_agent_version`: Version of [td-agent](
128128
https://td-agent-package-browser.herokuapp.com/) (fluentd package) that will
129-
be installed (**default:** `3.7.1-0` for Debian 9, and `4.3.0` for other
130-
distros)
129+
be installed (**default:** `4.3.0`)
131130

132131
- `splunk_fluentd_config`: Path to the fluentd config file on the remote host.
133132
(**default:** `/etc/otel/collector/fluentd/fluent.conf`)

deployments/salt/splunk-otel-collector/fluentd.sls

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
{% if td_agent_version %}
88
{{ td_agent_version }}
9-
{%- elif grains['oscodename'] == 'stretch' %}
10-
{% set td_agent_version = '3.7.1-0' %}
119
{%- elif grains['os_family'] == 'Debian' %}
1210
{% set td_agent_version = '4.3.2-1' %}
1311
{%- else %}

packaging/installer/install.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ get_distro_codename() {
4040

4141
if [ "$distro" = "debian" ] && [ -z "$codename" ]; then
4242
case "$( get_distro_version )" in
43-
9)
44-
codename="stretch"
45-
;;
46-
10)
47-
codename="buster"
48-
;;
4943
11)
5044
codename="bullseye"
5145
;;
@@ -97,15 +91,10 @@ default_listen_interface="0.0.0.0"
9791

9892
default_collector_version="latest"
9993
default_td_agent_version="4.3.2"
100-
default_td_agent_version_stretch="3.7.1-0"
10194

10295
default_service_user="splunk-otel-collector"
10396
default_service_group="splunk-otel-collector"
10497

105-
if [ "$distro_codename" = "stretch" ]; then
106-
default_td_agent_version="$default_td_agent_version_stretch"
107-
fi
108-
10998
preload_path="/etc/ld.so.preload"
11099
default_instrumentation_version="latest"
111100
default_deployment_environment=""
@@ -753,9 +742,7 @@ install() {
753742
apt-get -y update
754743
install_apt_package "splunk-otel-collector" "$collector_version"
755744
if [ -n "$td_agent_version" ]; then
756-
if [ "$distro_codename" != "stretch" ]; then
757-
td_agent_version="${td_agent_version}-1"
758-
fi
745+
td_agent_version="${td_agent_version}-1"
759746
if [ "$skip_fluentd_repo" = "false" ]; then
760747
install_td_agent_apt_repo "$td_agent_version"
761748
fi
@@ -1039,7 +1026,7 @@ distro_is_supported() {
10391026
;;
10401027
debian)
10411028
case "$distro_codename" in
1042-
bookworm|bullseye|buster|stretch)
1029+
bookworm|bullseye)
10431030
return 0
10441031
;;
10451032
esac

packaging/tests/deployments/puppet/images/deb/Dockerfile.debian-buster

Lines changed: 0 additions & 47 deletions
This file was deleted.

packaging/tests/deployments/puppet/images/deb/Dockerfile.debian-stretch

Lines changed: 0 additions & 45 deletions
This file was deleted.

packaging/tests/deployments/puppet/puppet_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def verify_env_file(container, api_url=SPLUNK_API_URL, ingest_url=SPLUNK_INGEST_
125125

126126

127127
def skip_if_necessary(distro, puppet_release):
128-
if distro in ("debian-stretch", "ubuntu-xenial") and int(puppet_release) >= 8:
128+
if distro == "ubuntu-xenial" and int(puppet_release) >= 8:
129129
pytest.skip(f"Puppet {puppet_release} not supported for {distro}")
130130

131131

packaging/tests/deployments/salt/images/Dockerfile.deb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ ENV DEBIAN_FRONTEND=noninteractive
66
ENV SALT_VERSION=latest
77
ENV NODE_VERSION=16.20.2
88

9-
# repo update for debian:stretch
10-
RUN if [ ${DISTRO_IMAGE} = "debian:stretch" ]; then \
11-
sed -i 's|http://.*.debian.org|http://archive.debian.org|' /etc/apt/sources.list && \
12-
sed -i '/stretch-updates/d' /etc/apt/sources.list; fi
13-
149
RUN apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold
1510
RUN apt-get install -y software-properties-common ca-certificates wget curl apt-transport-https python3-pip vim systemd procps
1611

packaging/tests/deployments/salt/images/distro_docker_opts.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
deb:
22
debian-bullseye: ["DISTRO_IMAGE=debian:bullseye"]
3-
debian-buster: ["DISTRO_IMAGE=debian:buster"]
4-
debian-stretch: ["DISTRO_IMAGE=debian:stretch"]
53
ubunu-bionic: ["DISTRO_IMAGE=ubuntu:18.04"]
64
ubuntu-focal: ["DISTRO_IMAGE=ubuntu:20.04"]
75
ubuntu-jammy: ["DISTRO_IMAGE=ubuntu:22.04"]

packaging/tests/images/deb/Dockerfile.debian-buster

Lines changed: 0 additions & 24 deletions
This file was deleted.

packaging/tests/images/deb/Dockerfile.debian-stretch

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)