Merge pull request #284 from konstruktoid/communitychecks

Communitychecks
This commit is contained in:
Thomas Sjögren 2018-01-17 16:14:47 +01:00 committed by GitHub
commit 2958a8b806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View file

@ -134,8 +134,8 @@ docker_swarm_configuration() {
}
community_checks() {
# check_c_1
true;
check_c
check_c_1
}
# CIS

View file

@ -0,0 +1,18 @@
#!/bin/sh
check_c() {
logit "\n"
info "99 - Community contributed checks"
}
# check_c_1
check_c_1() {
check_c_1="C.1 - This is a example check"
totalChecks=$((totalChecks + 1))
if docker info --format='{{ .Architecture }}' | grep 'x86_64'; then
pass "$check_c_1"
logjson "c.1" "PASS"
else
warn "$check_c_1"
logjson "c.1" "WARN"
fi
}