diff --git a/run-command/blackhole-stress.yml b/run-command/blackhole-stress.yml index 8bd167e..b4c7555 100644 --- a/run-command/blackhole-stress.yml +++ b/run-command/blackhole-stress.yml @@ -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." diff --git a/run-command/cpu-stress.yml b/run-command/cpu-stress.yml index 865233f..39bcc71 100644 --- a/run-command/cpu-stress.yml +++ b/run-command/cpu-stress.yml @@ -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 diff --git a/run-command/diskspace-stress.yml b/run-command/diskspace-stress.yml index 99fb135..2f4ecb5 100644 --- a/run-command/diskspace-stress.yml +++ b/run-command/diskspace-stress.yml @@ -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 @@ -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. \ No newline at end of file + echo Finished Disk stress. diff --git a/run-command/io-stress.yml b/run-command/io-stress.yml index 8884fe0..7ce5b62 100644 --- a/run-command/io-stress.yml +++ b/run-command/io-stress.yml @@ -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 diff --git a/run-command/latency-stress-sources.yml b/run-command/latency-stress-sources.yml index 1783d34..ab6a1a4 100644 --- a/run-command/latency-stress-sources.yml +++ b/run-command/latency-stress-sources.yml @@ -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 diff --git a/run-command/latency-stress.yml b/run-command/latency-stress.yml index a806c5c..808d7d9 100644 --- a/run-command/latency-stress.yml +++ b/run-command/latency-stress.yml @@ -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 diff --git a/run-command/memory-stress.yml b/run-command/memory-stress.yml index 55b3314..4bf5b97 100644 --- a/run-command/memory-stress.yml +++ b/run-command/memory-stress.yml @@ -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 diff --git a/run-command/network-loss-stress-sources.yml b/run-command/network-loss-stress-sources.yml index 0dc69d8..bdd7be2 100644 --- a/run-command/network-loss-stress-sources.yml +++ b/run-command/network-loss-stress-sources.yml @@ -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 diff --git a/run-command/network-loss-stress.yml b/run-command/network-loss-stress.yml index b6929b4..f6abc50 100644 --- a/run-command/network-loss-stress.yml +++ b/run-command/network-loss-stress.yml @@ -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