summaryrefslogtreecommitdiff
path: root/puppet/modules/resolvconf/templates/resolvconf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/resolvconf/templates/resolvconf.erb')
-rw-r--r--puppet/modules/resolvconf/templates/resolvconf.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/modules/resolvconf/templates/resolvconf.erb b/puppet/modules/resolvconf/templates/resolvconf.erb
new file mode 100644
index 00000000..d8136bfb
--- /dev/null
+++ b/puppet/modules/resolvconf/templates/resolvconf.erb
@@ -0,0 +1,7 @@
+# managed by puppet
+domain <%= scope.lookupvar('resolvconf::domain') %>
+search <%= scope.lookupvar('resolvconf::search') %>
+
+<% scope.lookupvar('resolvconf::nameservers').each do |nameserver| -%>
+nameserver <%= nameserver %>
+<% end -%>