#jinja2: trim_blocks: False {% if shared_agent_config is defined %} {% for agent_config in shared_agent_config %} {% if agent_config.syscheck is defined %} {% if agent_config.syscheck.auto_ignore is defined %} {{ agent_config.syscheck.auto_ignore }} {% endif %} {{ agent_config.syscheck.frequency }} {{ agent_config.syscheck.scan_on_start }} {% if agent_config.syscheck.directories is defined %} {% for directory in agent_config.syscheck.directories %} {{ directory.dirs }} {% endfor %} {% endif %} {% if agent_config.syscheck.ignore is defined %} {% for ignore in agent_config.syscheck.ignore %} {{ ignore }} {% endfor %} {% endif %} {% if agent_config.syscheck.no_diff is defined %} {% for no_diff in agent_config.syscheck.no_diff %} {{ no_diff }} {% endfor %} {% endif %} {% if agent_config.syscheck.windows_registry is defined %} {% for registry_key in agent_config.syscheck.windows_registry %} {% if registry_key.arch is defined %} {{ registry_key.key }} {% else %} {{ registry_key.key }} {% endif %} {% endfor %} {% endif %} {% endif %} {% if agent_config.localfiles is defined %} {% for localfile in agent_config.localfiles %} {{ localfile.format }} {% if localfile.format == 'command' or localfile.format == 'full_command' %} {{ localfile.command }} {% if localfile.alias is defined %} {{ localfile.alias }} {% endif %} {% if localfile.frequency is defined %} {{ localfile.frequency }} {% endif %} {% else %} {{ localfile.location }} {% if localfile.format == 'eventchannel' %} {% if localfile.only_future_events is defined %} {{ localfile.only_future_events }} {% endif %} {% if localfile.query is defined %} {{ localfile.query }} {% endif %} {% endif %} {% endif %} {% if localfile.format == 'json' and localfile.labels is defined %} {% for item in localfile.labels %} {% endfor %} {% endif %} {% if localfile.target is defined %} {{ localfile.target }} {% endif %} {% if localfile.out_format is defined %} {{ localfile.out_format }} {% endif %} {% endfor %} {% endif %} {% if agent_config.rootcheck is defined %} no yes yes yes yes yes yes yes {{ agent_config.rootcheck.frequency }} {% if agent_config.rootcheck.cis_distribution_filename is not none %} {{ wazuh_dir }}/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }} {% endif %} yes {% endif %} {% endfor %} {% endif %}