Skip to content

Instantly share code, notes, and snippets.

@larryebaum
Last active June 9, 2017 18:17
Show Gist options
  • Save larryebaum/193bdf3cc0c3548053d57a52aacdc49e to your computer and use it in GitHub Desktop.
Save larryebaum/193bdf3cc0c3548053d57a52aacdc49e to your computer and use it in GitHub Desktop.
Audit Cookbook Configuration Cheatsheet
<!-- Sourced from http://htmlpreview.github.io/?https://github.com/jeremymv2/audit-docs/blob/master/grid.html-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<table class="table table-bordered">
<tr>
<th></th><th>Report Direct to Compliance</th><th>Report Direct to Automate</th><th>Report to Compliance via Chef Server</th><th>Report to Automate via Chef Server</th>
</tr>
<tr>
<th>Fetch Direct From Compliance</th>
<td> <!-- Fetch Directly from Compliance : Report Directly to Compliance -->
<pre>
['audit']['reporter'] = 'chef-compliance'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
</pre>
</td>
<td> <!-- Fetch Directly from Compliance : Report Directly to Automate -->
<pre>
['audit']['reporter'] = 'chef-automate'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
client.rb:
data_collector['server_url'] = 'https://automate-server.test/data-collector/v0/'
data_collector['token'] = '..'
</pre>
</td>
<td> <!-- Fetch Directly from Compliance : Report to Compliance via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-compliance'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
</pre>
</td>
<td> <!-- Fetch Directly from Compliance : Report to Automate via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-automate'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
chef-server.rb:
data_collector['root_url'] = 'https://automate-server.test/data-collector/v0/'
</pre>
</td>
</tr>
<tr>
<th>Fetch From Compliance via Chef Server</th>
<td> <!-- Fetch from Compliance via Chef Server : Report Directly to Compliance -->
<pre>
['audit']['reporter'] = 'chef-compliance'
['audit']['fetcher'] = 'chef-server'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
Compliance Integrated w/ Chef Server
</pre>
</td>
<td> <!-- Fetch from Compliance via Chef Server : Report Directly to Automate -->
<pre>
['audit']['reporter'] = 'chef-automate'
['audit']['fetcher'] = 'chef-server'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
Compliance Integrated w/ Chef Server
client.rb:
data_collector['server_url'] = 'https://automate-server.test/data-collector/v0/'
data_collector['token'] = '..'
</pre>
</td>
<td> <!-- Fetch from Compliance via Chef Server : Report to Compliance via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-compliance'
['audit']['fetcher'] = 'chef-server'
Compliance Integrated w/ Chef Server
</pre>
</td>
<td> <!-- Fetch from Compliance via Chef Server : Report to Automate via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-automate'
['audit']['fetcher'] = 'chef-server'
Compliance Integrated w/ Chef Server
chef-server.rb:
data_collector['root_url'] = 'https://automate-server.test/data-collector/v0/'</td>
</pre>
</td>
</tr>
<tr>
<th>Fetch From Automate via Chef Server</th>
<td> <!-- Fetch From Automate via Chef Server : Report Directly to Compliance -->
<pre>
['audit']['reporter'] = 'chef-compliance'
['audit']['fetcher'] = 'chef-server'
['audit']['server'] = 'https://compliance-server.test/api'
['audit']['refresh_token' OR 'token'] = '..'
['audit']['owner'] = 'Owner/Org'
chef-server.rb:
profiles['root_url'] = 'https://automate-server.test'
delivery.rb:
compliance_profiles["enable"] = true
</pre>
</td>
<td> <!-- Fetch From Automate via Chef Server : Report Directly to Automate -->
<pre>
['audit']['reporter'] = 'chef-automate'
['audit']['fetcher'] = 'chef-server'
chef-server.rb:
profiles['root_url'] = 'https://automate-server.test'
client.rb:
data_collector['server_url'] = 'https://automate-server.test/data-collector/v0/'
data_collector['token'] = '..'
delivery.rb:
compliance_profiles["enable"] = true
</pre>
</td>
<td> <!-- Fetch From Automate via Chef Server : Report to Compliance via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-compliance'
['audit']['fetcher'] = 'chef-server'
Compliance Integrated w/ Chef Server
chef-server.rb:
profiles['root_url'] = 'https://automate-server.test'
delivery.rb:
compliance_profiles["enable"] = true
</pre>
</td>
<td> <!-- Fetch From Automate via Chef Server : Report to Automate via Chef Server -->
<pre>
['audit']['reporter'] = 'chef-server-automate'
['audit']['fetcher'] = 'chef-server'
chef-server.rb:
data_collector['root_url'] = 'https://automate-server.test/data-collector/v0/'
profiles['root_url'] = 'https://automate-server.test'
delivery.rb:
compliance_profiles["enable"] = true
</pre>
</td>
</tr>
</table>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment