summaryrefslogtreecommitdiff
path: root/templates/resolv.conf.tmpl
blob: b7e97b132dc81e8739a44a1f7b0773ab5b04e13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Your system has been configured with 'manage-resolv-conf' set to true.
# As a result, cloud-init has written this file with configuration data
# that it has been provided. Cloud-init, by default, will write this file
# a single time (PER_ONCE).
#

#if $varExists('nameservers')
#for $server in $nameservers
nameserver $server
#end for
#end if
#if $varExists('searchdomains')
search #slurp
#for $search in $searchdomains
$search #slurp
#end for

#end if
#if $varExists('domain')
domain $domain
#end if
#if $varExists('sortlist')
sortlist #slurp
#for $sort in $sortlist
$sort #slurp
#end for

#end if
#if $varExists('options') or $varExists('flags')
options #slurp
#for $flag in $flags
$flag #slurp
#end for
#for $key, $value in $options.items()
$key:$value #slurp
#end for

#end if