summaryrefslogtreecommitdiff
path: root/puppet/modules/resolvconf/templates
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:26 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:26 -0400
commit9721c9eeb21f027456b149764d300a11e301c8ee (patch)
treeddc6e91ad9a823db157274e977cfbc935885dcdb /puppet/modules/resolvconf/templates
parentb77078c4bac8dd2ecc00001696455c34c378f636 (diff)
parent4d36a4d9ca9880d9cc12f81b84a50981831d9394 (diff)
Merge commit '4d36a4d9ca9880d9cc12f81b84a50981831d9394' as 'puppet/modules/resolvconf'
Diffstat (limited to 'puppet/modules/resolvconf/templates')
-rw-r--r--puppet/modules/resolvconf/templates/resolvconf.OpenBSD.erb5
-rw-r--r--puppet/modules/resolvconf/templates/resolvconf.erb7
2 files changed, 12 insertions, 0 deletions
diff --git a/puppet/modules/resolvconf/templates/resolvconf.OpenBSD.erb b/puppet/modules/resolvconf/templates/resolvconf.OpenBSD.erb
new file mode 100644
index 00000000..48daf279
--- /dev/null
+++ b/puppet/modules/resolvconf/templates/resolvconf.OpenBSD.erb
@@ -0,0 +1,5 @@
+# managed by puppet
+lookup file bind
+<% scope.lookupvar('resolvconf::nameservers').each do |nameserver| -%>
+nameserver <%= nameserver %>
+<% end -%>
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 -%>