mirror of
https://github.com/inspec/inspec
synced 2025-02-24 19:37:18 +00:00
* Add audit integration testing. * Add some docs and feedback changes. * Updated integration task to use paramaters and clean it up. * Fix unit test Signed-off-by: Jared Quick <jquick@chef.io>
52 lines
1.5 KiB
Ruby
52 lines
1.5 KiB
Ruby
# encoding: utf-8
|
|
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
#
|
|
# prepare all operating systems with the required configuration
|
|
|
|
|
|
# inject the current inspec gem for use with audit cookbook
|
|
# this is generated via Rake test:integration
|
|
cookbook_file '/root/inspec-core-local.gem' do
|
|
source 'inspec-core-local.gem'
|
|
action :create
|
|
end
|
|
|
|
chef_gem 'inspec' do
|
|
source '/root/inspec-core-local.gem'
|
|
end
|
|
|
|
# container preparation
|
|
include_recipe('os_prepare::prep_container')
|
|
|
|
# confgure ssh
|
|
include_recipe('os_prepare::ssh')
|
|
|
|
# basic tests
|
|
include_recipe('os_prepare::file')
|
|
include_recipe('os_prepare::mount') unless node['osprepare']['docker']
|
|
include_recipe('os_prepare::service')
|
|
include_recipe('os_prepare::package')
|
|
include_recipe('os_prepare::registry_key')
|
|
include_recipe('os_prepare::iis')
|
|
include_recipe('os_prepare::iptables') unless node['osprepare']['docker']
|
|
include_recipe('os_prepare::x509')
|
|
include_recipe('os_prepare::dh_params')
|
|
|
|
# config file parsing
|
|
include_recipe('os_prepare::json_yaml_csv_ini_xml')
|
|
|
|
# configure repos, eg. nginx
|
|
include_recipe('os_prepare::apt')
|
|
|
|
# application configuration
|
|
if node['osprepare']['application'] && node['platform_family'] != 'windows'
|
|
include_recipe('os_prepare::postgres')
|
|
include_recipe('os_prepare::auditctl') unless node['osprepare']['docker']
|
|
include_recipe('os_prepare::apache')
|
|
end
|
|
|
|
# docker host testing
|
|
include_recipe('os_prepare::docker_host') unless node['osprepare']['docker']
|
|
|
|
include_recipe('os_prepare::os_env')
|