forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ComplianceAsCode#12815 from mpurg/fix_arch_applica…
…bility_2 Fix the bash conditional for checking system architecture
- Loading branch information
Showing
8 changed files
with
18 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:aarch64_arch | ||
title: System architecture is AARCH64 | ||
check_id: proc_sys_kernel_osrelease_arch_aarch64 | ||
bash_conditional: 'grep -q aarch64 /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: {{{ bash_arch_conditional("aarch64") }}} | ||
ansible_conditional: 'ansible_architecture == "aarch64"' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:not_aarch64_arch | ||
title: System architecture is not AARCH64 | ||
check_id: proc_sys_kernel_osrelease_arch_not_aarch64 | ||
bash_conditional: '! grep -q aarch64 /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: '! {{{ bash_arch_conditional("aarch64") }}}' | ||
ansible_conditional: 'ansible_architecture != "aarch64"' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:not_s390x_arch | ||
title: System architecture is not S390X | ||
check_id: proc_sys_kernel_osrelease_arch_not_s390x | ||
bash_conditional: '! grep -q s390x /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: '! {{{ bash_arch_conditional("s390x") }}}' | ||
ansible_conditional: 'ansible_architecture != "s390x"' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: "cpe:/a:ppc64le_arch" | ||
title: "System architecture is ppc64le" | ||
check_id: proc_sys_kernel_osrelease_arch_ppc64le | ||
bash_conditional: 'grep -q ppc64le /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: {{{ bash_arch_conditional("ppc64le") }}} | ||
ansible_conditional: 'ansible_architecture == "ppc64le"' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:s390x_arch | ||
title: System architecture is S390X | ||
check_id: proc_sys_kernel_osrelease_arch_s390x | ||
bash_conditional: 'grep -q s390x /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: {{{ bash_arch_conditional("s390x") }}} | ||
ansible_conditional: 'ansible_architecture == "s390x"' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:x86_64_arch | ||
title: System architecture is x86_64 | ||
check_id: proc_sys_kernel_osrelease_arch_x86_64 | ||
bash_conditional: 'grep -q x86_64 /proc/sys/kernel/{osrelease,arch}' | ||
bash_conditional: {{{ bash_arch_conditional("x86_64") }}} | ||
ansible_conditional: 'ansible_architecture == "x86_64"' |
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