############################################################################### # This file was AUTOMATICALLY GENERATED. DO NOT MODIFY. # Controlled by ntp-config.service ############################################################################### {# We can connect only to the servers we trust. Determine those servers -#} {% set trusted_arr = [] -%} {% for server in NTP_SERVER if NTP_SERVER[server].trusted == 'yes' and NTP_SERVER[server].resolve_as -%} {% set _ = trusted_arr.append(NTP_SERVER[server].resolve_as) -%} {% endfor -%} {# Define authentication keys inventory -#} {% set trusted_str = ' ' ~ trusted_arr|join(',') -%} {% for keyid in NTP_KEY if NTP_KEY[keyid].type and NTP_KEY[keyid].value %} {% set keyval = NTP_KEY[keyid].value | b64decode %} {{ keyid }} {{ NTP_KEY[keyid].type }} {{ keyval }}{{trusted_str}} {% endfor -%}