Blame templates/resolv.conf.tmpl

Packit Service a04d08
## template:jinja
Packit Service a04d08
# Your system has been configured with 'manage-resolv-conf' set to true.
Packit Service a04d08
# As a result, cloud-init has written this file with configuration data
Packit Service a04d08
# that it has been provided. Cloud-init, by default, will write this file
Packit Service a04d08
# a single time (PER_ONCE).
Packit Service a04d08
#
Packit Service a04d08
{% if nameservers is defined %}
Packit Service a04d08
{% for server in nameservers %}
Packit Service a04d08
nameserver {{server}}
Packit Service a04d08
{% endfor %}
Packit Service a04d08
Packit Service a04d08
{% endif -%}
Packit Service a04d08
{% if searchdomains is defined %}
Packit Service a04d08
search {% for search in searchdomains %}{{search}} {% endfor %}
Packit Service a04d08
Packit Service a04d08
{% endif %}
Packit Service a04d08
{% if domain is defined %}
Packit Service a04d08
domain {{domain}}
Packit Service a04d08
{% endif %}
Packit Service a04d08
{% if sortlist is defined %}
Packit Service a04d08
Packit Service a04d08
sortlist {% for sort in sortlist %}{{sort}} {% endfor %}
Packit Service a04d08
{% endif %}
Packit Service 9bfd13
{#
Packit Service 9bfd13
    Flags and options are required to be on the 
Packit Service 9bfd13
    same line preceded by "options" keyword
Packit Service 9bfd13
#}
Packit Service a04d08
{% if options or flags %}
Packit Service a04d08
Packit Service 9bfd13
options
Packit Service 9bfd13
{%- for flag in flags %}
Packit Service 9bfd13
 {{flag-}}
Packit Service 9bfd13
{% endfor %}
Packit Service 9bfd13
Packit Service 9bfd13
{%- for key, value in options.items()|sort %}
Packit Service 9bfd13
 {{key}}:{{value-}}
Packit Service a04d08
{% endfor %}
Packit Service a04d08
{% endif %}