Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Amazon Linux 2023 #26

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion run-command/blackhole-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install iptables at
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
yum -y install iptables at
else
echo "There was a problem installing dependencies."
Expand Down
4 changes: 3 additions & 1 deletion run-command/cpu-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install stress-ng
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
# Use amazon-linux-extras if available (Amazon Linux 2). Don't need it otherwise (Amazon Linux 1)
which amazon-linux-extras 2>/dev/null 1>&2 && sudo amazon-linux-extras install testing
sudo yum -y install stress-ng
Expand Down
6 changes: 4 additions & 2 deletions run-command/diskspace-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install stress-ng
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
# Use amazon-linux-extras if available (Amazon Linux 2). Don't need it otherwise (Amazon Linux 1)
which amazon-linux-extras 2>/dev/null 1>&2 && sudo amazon-linux-extras install testing
sudo yum -y install stress-ng
Expand Down Expand Up @@ -104,4 +106,4 @@ mainSteps:
pgrep stress-ng && echo Another stress-ng command is running, exiting... && exit 1
echo Initiating Disk stress for {{ DurationSeconds }} seconds...
stress-ng --fallocate {{ Workers }} --fallocate-bytes {{ Filesize }}g -t {{ DurationSeconds }}s
echo Finished Disk stress.
echo Finished Disk stress.
4 changes: 3 additions & 1 deletion run-command/io-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install stress-ng
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
# Use amazon-linux-extras if available (Amazon Linux 2). Don't need it otherwise (Amazon Linux 1)
which amazon-linux-extras 2>/dev/null 1>&2 && sudo amazon-linux-extras install testing
sudo yum -y install stress-ng
Expand Down
5 changes: 4 additions & 1 deletion run-command/latency-stress-sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install iproute-tc jq at
sudo dnf -y install bind-utils
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
sudo amazon-linux-extras install testing
sudo yum -y install tc jq at
else
Expand Down
5 changes: 4 additions & 1 deletion run-command/latency-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install iproute-tc jq at
sudo dnf -y install bind-utils
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
sudo amazon-linux-extras install testing
sudo yum -y install tc at
else
Expand Down
4 changes: 3 additions & 1 deletion run-command/memory-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install stress-ng
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
# Use amazon-linux-extras if available (Amazon Linux 2). Don't need it otherwise (Amazon Linux 1)
which amazon-linux-extras 2>/dev/null 1>&2 && sudo amazon-linux-extras install testing
sudo yum -y install stress-ng
Expand Down
5 changes: 4 additions & 1 deletion run-command/network-loss-stress-sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install iproute-tc jq a
sudo dnf -y install bind-utils
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
sudo amazon-linux-extras install testing
sudo yum -y install tc jq at
else
Expand Down
5 changes: 4 additions & 1 deletion run-command/network-loss-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ mainSteps:
if [[ "{{ InstallDependencies }}" == True ]] ; then
echo "Installing required dependencies"
if [ -f "/etc/system-release" ] ; then
if cat /etc/system-release | grep -i 'Amazon Linux' ; then
if cat /etc/system-release | grep -i 'Amazon Linux release 2023' ; then
sudo dnf -y install iproute-tc at
sudo dnf -y install bind-utils
elif cat /etc/system-release | grep -i 'Amazon Linux' ; then
sudo amazon-linux-extras install testing
sudo yum -y install tc at
else
Expand Down