forked from ansible-lockdown/RHEL9-CIS
addition of audit_only config
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
8784941179
commit
23a4386e95
5 changed files with 103 additions and 49 deletions
38
vars/audit.yml
Normal file
38
vars/audit.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
|
||||
#### Audit Configuration Settings ####
|
||||
|
||||
# if get_audit_binary_method == download change accordingly
|
||||
audit_bin_url: "https://github.com/goss-org/goss/releases/download/{{ audit_bin_version.release }}/goss-linux-"
|
||||
|
||||
### Goss Audit Benchmark file ###
|
||||
## managed by the control audit_content
|
||||
# git
|
||||
audit_file_git: "https://github.com/ansible-lockdown/{{ benchmark }}-Audit.git"
|
||||
audit_git_version: "benchmark-{{ benchmark_version }}"
|
||||
|
||||
## Goss configuration information
|
||||
# Where the goss configs and outputs are stored
|
||||
audit_out_dir: '/opt'
|
||||
# Where the goss audit configuration will be stored
|
||||
audit_conf_dir: "{{ audit_out_dir }}/{{ benchmark }}-Audit"
|
||||
|
||||
# If changed these can affect other products
|
||||
pre_audit_outfile: "{{ audit_out_dir }}/{{ ansible_facts.hostname }}-{{ benchmark }}-{{ benchmark_version }}_pre_scan_{{ ansible_facts.date_time.epoch }}.{{ audit_format }}"
|
||||
post_audit_outfile: "{{ audit_out_dir }}/{{ ansible_facts.hostname }}-{{ benchmark }}-{{ benchmark_version }}_post_scan_{{ ansible_facts.date_time.epoch }}.{{ audit_format }}"
|
||||
|
||||
## The following should not need changing
|
||||
|
||||
### Audit binary settings ###
|
||||
audit_bin_version:
|
||||
release: v0.4.4
|
||||
AMD64_checksum: 'sha256:1c4f54b22fde9d4d5687939abc2606b0660a5d14a98afcd09b04b793d69acdc5'
|
||||
audit_bin_path: /usr/local/bin/
|
||||
audit_bin: "{{ audit_bin_path }}goss"
|
||||
audit_format: json
|
||||
|
||||
audit_vars_path: "{{ audit_conf_dir }}/vars/{{ ansible_facts.hostname }}.yml"
|
||||
audit_results: |
|
||||
The pre remediation results are: {{ pre_audit_summary }}.
|
||||
The post remediation results are: {{ post_audit_summary }}.
|
||||
Full breakdown can be found in {{ audit_out_dir }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue