Skip to content

Commit

Permalink
Remove amazon2022, use amazon2023 instead
Browse files Browse the repository at this point in the history
amazon2022 lacks net-snmp-utils
amazonlinux/amazon-linux-2023#144

Signed-off-by: Eric Chlebek <[email protected]>
  • Loading branch information
echlebek committed Jul 18, 2023
1 parent 9ee4f56 commit 124e05f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .bonsai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ builds:
- "entity.system.platform_version == '2'"
- "entity.system.arch == 'amd64'"

- platform: "amazon2022"
- platform: "amazon2023"
arch: "amd64"
asset_filename: "monitoring-plugins-amazon2022_#{version}_linux_amd64.tar.gz"
asset_filename: "monitoring-plugins-amazon2023_#{version}_linux_amd64.tar.gz"
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.platform == 'amazon'"
- "entity.system.platform_version == '2022'"
- "entity.system.platform_version == '2023'"
- "entity.system.arch == 'amd64'"

- platform: "centos7"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.amazon2022 → Dockerfile.amazon2023
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM amazonlinux:2022 as builder
FROM amazonlinux:2023 as builder

ARG SENSU_GO_ASSET_NAME="monitoring-plugins-amazon2022"
ARG SENSU_GO_ASSET_NAME="monitoring-plugins-amazon2023"
ARG SENSU_GO_ASSET_VERSION="2.7.0"
ARG PLUGINS="check_http"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ creating a Sensu Go Asset containing the C plugins.

The goal of this project is to provide Sensu Go Assets for CentOS/Rocky/RHEL Linux
(7, 8, 9), Debian Linux (9, 10, 11), Ubuntu Linux (18.04, 20.04, 22.04),
Amazon Linux (2, 2022), and Alpine Linux containing a good subset of the
Amazon Linux (2, 2023), and Alpine Linux containing a good subset of the
plugins from the Monitoring Plugins project.

### Current Status
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export SENSU_GO_ASSET_VERSION=$(git describe --abbrev=0 --tags)

mkdir assets/

for PLATFORM in alpine amazon1 amazon2 amazon2022 debian8 debian9 debian10 debian11 centos6 centos7 centos8 rocky9 ubuntu1404 ubuntu1604 ubuntu1804 ubuntu2004 ubuntu2204 raspberrypi64;
for PLATFORM in alpine amazon2 amazon2023 debian8 debian9 debian10 debian11 centos6 centos7 centos8 rocky9 ubuntu1404 ubuntu1604 ubuntu1804 ubuntu2004 ubuntu2204 raspberrypi64;
do
if [[ ${PLATFORM} == "raspberrypi64" ]]; then
export ARCH="arm64"
Expand Down
2 changes: 1 addition & 1 deletion package-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export PLUGINS="check_disk,check_dns,check_http,check_load,check_log,check_ntp,c
[[ -z "$GITHUB_TOKEN" ]] && { echo "GITHUB_TOKEN is empty, upload disabled" ; }
[[ -z "$TRAVIS_REPO_SLUG" ]] && { echo "TRAVIS_REPO_SLUG is empty"; exit 1; }
if [[ -z "$1" ]]; then
echo "Parameter 1, PLATFORMS is empty, using default set" ; platforms=( alpine amazon2 amazon2022 debian10 debian11 centos7 centos8 ubuntu1804 ubuntu2004 ubuntu2204 raspberrypi64 );
echo "Parameter 1, PLATFORMS is empty, using default set" ; platforms=( alpine amazon2 amazon2023 debian10 debian11 centos7 centos8 ubuntu1804 ubuntu2004 ubuntu2204 raspberrypi64 );
else
IFS=', ' read -r -a platforms <<< "$1"
fi
Expand Down

0 comments on commit 124e05f

Please sign in to comment.