<def-group>
  <definition class="compliance" id="ensure_gpgcheck_repo_metadata" version="1">
    {{{ oval_metadata("The repo_gpgcheck option should be used to ensure that checking
      of repository metadata always occurs.", rule_title=rule_title) }}}
    <criteria>
      <criterion comment="check value of repo_gpgcheck in {{{ pkg_manager_config_file }}}" test_ref="test_yum_ensure_gpgcheck_repo_metadata" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="check value of repo_gpgcheck in {{{ pkg_manager_config_file }}}" id="test_yum_ensure_gpgcheck_repo_metadata" version="1">
    <ind:object object_ref="object_yum_ensure_gpgcheck_repo_metadata" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_yum_ensure_gpgcheck_repo_metadata" comment="repo_gpgcheck set in {{{ pkg_manager_config_file }}}" version="1">
    <ind:filepath>{{{ pkg_manager_config_file }}}</ind:filepath>
    <ind:pattern operation="pattern match">^\s*repo_gpgcheck\s*=\s*(1|True|yes)\s*$</ind:pattern>
    <ind:instance datatype="int" operation="equals">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
