An Ansible role to install a Datadog agent check for Lynis, an open source security auditing tool.
An Ansible role to install a
Datadog agent check for
Lynis, an open source security auditing tool.
requirements.yml:
- src: Datadog.datadog
version: 4.2.1
- src: infothrill.datadog_check_lynis
version: v3.0.0
Install:
ansible-galaxy install -r requirements.yml -p ./roles/
Playbook:
- hosts: servers
roles:
- role: Datadog.datadog
- role: ansible-role-datadog_check_lynis
To configure the check, please use the Datadog.datadog role and add an entry
in the checks
dictionary there:
lynis:
init_config:
instances:
- metrics:
- hardening_index
- installed_packages
- lynis_tests_done
report: /var/log/lynis/report.dat
variable | default | description |
---|---|---|
ddagent_user | dd-agent | agent user |
ddagent_group | dd-agent | agent group |
In principle, this role can be run standalone, however it is only tested together
with the role Datadog.datadog.
The recommended approach would be to:
MIT
This role was created in 2017 by Paul Kremer.
datadog_check_lynis
> 6
(python 3+), and drop support for older versions