<def-group>
  <definition class="compliance" id="ntp_remote_server" version="1">
    <metadata>
      <title>Specify a Remote NTP Server for Time Data</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>A remote NTP Server for time synchronization should be
      specified (and dependencies are met)</description>
    </metadata>
    <criteria comment="ntpd is enabled and conditions are met" operator="AND">
      <extend_definition comment="ntpd is enabled"
      definition_ref="service_ntpd_enabled" />
      <criterion test_ref="test_ntp_remote_server" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
  comment="Ensure at least one NTP server is set" id="test_ntp_remote_server"
  version="1">
    <ind:object object_ref="obj_ntp_remote_server" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="Ensure at least one NTP server is set"
  id="obj_ntp_remote_server" version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>ntp.conf</ind:filename>
    <ind:pattern operation="pattern match">^[\s]*server[\s]+.+$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
