You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In RHEL8, as neither {% if ansible_distribution_major_version == '7' %} nor {% elif ansible_distribution_major_version == '6' %} are activated, the wodle is rendered as:
jm404
changed the title
Openscap wodle may render broken wodle block in ossec.conf
Openscap template block may render invalid wodle block in ossec.conf
Oct 21, 2019
The
openscap
block in the template var-ossec-etc-ossec-server.conf.j2 is not properly rendered for Centos 8 and RHEL 8.The code block causing the issue is the following:
wazuh-ansible/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2
Lines 133 to 183 in d384c73
In RHEL8, as neither
{% if ansible_distribution_major_version == '7' %}
nor{% elif ansible_distribution_major_version == '6' %}
are activated, the wodle is rendered as:Notice there is no line that opens "content" that tag causing Wazuh Manager to fail when verifying the
ossec.conf
file.This error affects different OS's and the following templates should be reviewed.
var-ossec-etc-ossec-server.conf.j2
var-ossec-etc-ossec-agent.conf.j2
Tasks
Fix conditionals to don't render the wodle when OS can't be determined
Review rendered OS and update them if required
Test changes and verify template renders properly where OS detected
Update changelog
Best regards
Jose
The text was updated successfully, but these errors were encountered: