-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OTL-2195: Fluentd disabled by default for salt (#3448)
* OTL-2195: Fluentd disabled by default for salt * include PR in changelog
- Loading branch information
1 parent
5938ee7
commit 9a427db
Showing
8 changed files
with
112 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...rnal/buildscripts/packaging/tests/deployments/salt/images/rpm/Dockerfile.amazonlinux-2023
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM amazonlinux:2023 | ||
|
||
ENV container docker | ||
|
||
RUN yum install -y systemd procps initscripts python3-pip python3-devel gcc | ||
|
||
# Only the "amazon/2" repo is currently available, but seems to work for 2023 | ||
RUN rpm --import https://repo.saltproject.io/salt/py3/amazon/2/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub | ||
RUN curl -fsSL https://repo.saltproject.io/salt/py3/amazon/2/x86_64/latest.repo | tee /etc/yum.repos.d/salt-amzn.repo | ||
|
||
RUN yum install -y salt-minion | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.wants/*;\ | ||
rm -f /lib/systemd/system/local-fs.target.wants/*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ | ||
rm -f /lib/systemd/system/basic.target.wants/*;\ | ||
rm -f /lib/systemd/system/anaconda.target.wants/*; | ||
|
||
COPY internal/buildscripts/packaging/tests/deployments/salt/minion /etc/salt/minion | ||
COPY deployments/salt/splunk-otel-collector /srv/salt/splunk-otel-collector | ||
COPY deployments/salt/templates /srv/salt/templates | ||
COPY internal/buildscripts/packaging/tests/deployments/salt/top.sls /srv/pillar/top.sls | ||
COPY internal/buildscripts/packaging/tests/deployments/salt/top.sls /srv/salt/top.sls | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
31 changes: 31 additions & 0 deletions
31
internal/buildscripts/packaging/tests/deployments/salt/images/rpm/Dockerfile.centos-9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM quay.io/centos/centos:stream9 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
|
||
RUN dnf install -y systemd procps initscripts python3-pip python3-devel gcc | ||
|
||
RUN rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub | ||
RUN curl -fsSL https://repo.saltproject.io/salt/py3/redhat/9/x86_64/latest.repo | tee /etc/yum.repos.d/salt.repo | ||
|
||
RUN dnf install -y salt-minion | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.wants/*;\ | ||
rm -f /lib/systemd/system/local-fs.target.wants/*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ | ||
rm -f /lib/systemd/system/basic.target.wants/*;\ | ||
rm -f /lib/systemd/system/anaconda.target.wants/*; | ||
|
||
COPY internal/buildscripts/packaging/tests/deployments/salt/minion /etc/salt/minion | ||
COPY deployments/salt/splunk-otel-collector /srv/salt/splunk-otel-collector | ||
COPY deployments/salt/templates /srv/salt/templates | ||
COPY internal/buildscripts/packaging/tests/deployments/salt/top.sls /srv/pillar/top.sls | ||
COPY internal/buildscripts/packaging/tests/deployments/salt/top.sls /srv/salt/top.sls | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
CMD ["/usr/sbin/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters