Update T1562.001.yaml
Test 1: changed commands to be executed via input arguments to account for different flavors of Linux. Added cleanup commands based on the same principle.
This commit is contained in:
@@ -7,16 +7,20 @@ atomic_tests:
|
||||
Disables syslog collection
|
||||
supported_platforms:
|
||||
- linux
|
||||
input_arguments:
|
||||
flavor_command:
|
||||
description: Command to disable syslog collection. Default newer rsyslog commands. i.e older command = service rsyslog stop ; chkconfig off rsyslog
|
||||
type: String
|
||||
default: systemctl stop rsyslog ; systemctl disable rsyslog
|
||||
cleanup_command:
|
||||
description: Command to enable syslog collection. Default newer rsyslog commands. i.e older command = service rsyslog start ; chkconfig rsyslog on
|
||||
type: String
|
||||
default: systemctl start rsyslog ; systemctl enable rsyslog
|
||||
executor:
|
||||
command: |
|
||||
if [ $(rpm -q --queryformat '%{VERSION}' centos-release) -eq "6" ];
|
||||
then
|
||||
service rsyslog stop
|
||||
chkconfig off rsyslog
|
||||
else if [ $(rpm -q --queryformat '%{VERSION}' centos-release) -eq "7" ];
|
||||
systemctl stop rsyslog
|
||||
systemctl disable rsyslog
|
||||
fi
|
||||
#{flavor_command}
|
||||
cleanup_command: |
|
||||
#{cleanup_command}
|
||||
name: sh
|
||||
- name: Disable Cb Response
|
||||
auto_generated_guid: ae8943f7-0f8d-44de-962d-fbc2e2f03eb8
|
||||
|
||||
Reference in New Issue
Block a user