mirror of
https://github.com/inspec/inspec
synced 2024-11-30 16:39:20 +00:00
27 lines
814 B
Ruby
27 lines
814 B
Ruby
# encoding: utf-8
|
|
# author: Christoph Hartmann
|
|
# author: Dominik Richter
|
|
#
|
|
# prepare all operating systems with the required configuration
|
|
|
|
|
|
# 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::iptables') unless node['osprepare']['docker']
|
|
|
|
# config file parsing
|
|
include_recipe('os_prepare::json_yaml_csv_ini')
|
|
|
|
# configure repos, eg. nginx
|
|
include_recipe('os_prepare::apt')
|
|
|
|
# application configuration
|
|
if node['osprepare']['application']
|
|
include_recipe('os_prepare::postgres')
|
|
include_recipe('os_prepare::auditctl') unless node['osprepare']['docker']
|
|
include_recipe('os_prepare::apache')
|
|
end
|