Skip to content

Commit f86419f

Browse files
author
Deric Miguel
committed
add changes for cinc-auditor/inspec v4
Signed-off-by: Deric Miguel <dmiguel@logicworks.net>
1 parent ba22edc commit f86419f

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

Gemfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
source 'https://rubygems.org'
1+
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
22

3-
gem 'inspec', '~> 3'
4-
gem 'rake'
5-
gem 'rubocop'
3+
gem 'github_changelog_generator', '~> 1.12.0', :source => 'https://rubygems.org/'
4+
gem 'rake', :source => 'https://rubygems.org/'
5+
gem 'rubocop', :source => 'https://rubygems.org/'
6+
gem 'unf_ext', :source => 'https://rubygems.org/'
67

7-
group :tools do
8-
gem 'github_changelog_generator', '~> 1.12.0'
8+
source 'https://packagecloud.io/cinc-project/stable' do
9+
gem "chef-config"
10+
gem "chef-utils"
11+
gem "cinc-auditor-bin"
12+
gem "inspec"
13+
gem "inspec-core"
914
end

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace :test do
2020
# run inspec check to verify that the profile is properly configured
2121
task :check do
2222
dir = File.join(File.dirname(__FILE__))
23-
sh("bundle exec inspec check #{dir}")
23+
sh("bundle exec cinc-auditor check #{dir} --format json --log-level=error | jq .")
2424
end
2525
end
2626

controls/1_1_filesystem_configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# author: Kristian Vlaardingerbroek
1717

18-
cis_level = attribute('cis_level')
18+
cis_level = input('cis_level')
1919

2020
title '1.1 Filesystem Configuration'
2121

inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version: 0.4.2
1010
inspec_version: '>= 2.3.5'
1111
supports:
1212
- platform-family: linux
13-
attributes:
13+
inputs:
1414
- name: cis_level
1515
required: false
1616
description: 'CIS profile level to audit'

0 commit comments

Comments
 (0)