[wazuh]
name = WAZUH OSSEC Repository - www.wazuh.com
baseurl = https://packages.wazuh.com/3.x/yum/
gpgcheck = 1
<% if @operatingsystem == 'CentOS' and @operatingsystemmajrelease == '5' -%>
gpgkey = http://ossec.wazuh.com/key/RPM-GPG-KEY-OSSEC-RHEL5
<% else -%>
gpgkey = https://packages.wazuh.com/key/GPG-KEY-WAZUH
<% end -%>
enabled = 1
protect = 1
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

[wazuh]
name = WAZUH OSSEC Repository - www.wazuh.com
baseurl = https://packages.wazuh.com/3.x/yum/
gpgcheck = 1
<% if @operatingsystem == 'CentOS' and @operatingsystemmajrelease == '5' -%>
gpgkey = http://ossec.wazuh.com/key/RPM-GPG-KEY-OSSEC-RHEL5
<% else -%>
gpgkey = https://packages.wazuh.com/key/GPG-KEY-WAZUH
<% end -%>
enabled = 1
<% if @operatingsystem == 'CentOS' and @operatingsystemmajrelease < '8' -%>
protect = 1
<% end -%>
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

Disable protect in Wazuh repo for CentOS 8 and newer
Disable protect in Wazuh repo for CentOS 8 and newer
