Skip to content

Instantly share code, notes, and snippets.

@ericcalabretta
Last active April 24, 2020 13:56
Show Gist options
  • Save ericcalabretta/ffdb1f4ac44b8aabeb41c887fb922746 to your computer and use it in GitHub Desktop.
Save ericcalabretta/ffdb1f4ac44b8aabeb41c887fb922746 to your computer and use it in GitHub Desktop.
audit cookbook default value
include_recipe 'audit::default'
node.default['audit']['reporter'] = 'chef-server-automate'
node.default['audit']['fetcher'] = 'chef-server'
case node['platform']
when 'centos'
node.default['audit']['profiles']['cis-centos7-level1-server'] = {
'compliance': 'admin/cis-centos7-level1-server',
'version': '2.2.0-14'
}
when 'ubuntu'
node.default['audit']['profiles']['cis-ubuntu18.04lts-level2-server'] = {
'compliance': 'admin/cis-ubuntu18.04lts-level2-server',
'version': '1.0.0-26'
}
end
case node['platform_version']
when '10.0.17763'
node.default['audit']['profiles']['cis-windows2019-level1-memberserver'] = {
'compliance': 'admin/cis-windows2019-level1-memberserver',
'version': '1.0.1'
}
when '10.0.14393'
node.default['audit']['profiles']['cis-windows2016rtm-release1607-level1-memberserver'] = {
'compliance': 'admin/cis-windows2016rtm-release1607-level1-memberserver',
'version': '1.0.0-27'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment