<def-group>
  <definition class="compliance" id="chronyd_specify_multiple_servers" version="1">
    <metadata>
      <title>Specify Multiple Remote chronyd NTP Servers for Time Data</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>Multiple chronyd NTP Servers for time synchronization should be specified.</description>
    </metadata>
    <criteria comment="chrony.conf conditions are met">
      <criterion test_ref="test_chronyd_multiple_servers" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="Ensure more than one chronyd NTP server is set" id="test_chronyd_multiple_servers"
  version="1">
    <ind:object object_ref="object_chronyd_multiple_servers" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object comment="Ensure more than one chronyd NTP server is set"
  id="object_chronyd_multiple_servers" version="1">
    <ind:filepath operation="pattern match">^/etc/chrony\.(conf|d/.+\.conf)$</ind:filepath>
    <ind:pattern operation="pattern match">^([\s]*server[\s]+.+$){2,}$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
