{% if ntpd_listen is defined %} # listen to network {% for listen in ntpd_listen %} listen on {{ listen }} {% endfor %} {% endif %} {% if ntpd_constraints is defined %} # constraints constraint from {% for constraint in ntpd_constraints -%} {{ '"' + constraint + '"' -}} {{ ', ' if not loop.last -}} {% endfor %} {% endif %} # remote servers {% for server in ntpd_servers %} server {{ server }} {% endfor %}