diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:26 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:26 -0400 |
commit | 9721c9eeb21f027456b149764d300a11e301c8ee (patch) | |
tree | ddc6e91ad9a823db157274e977cfbc935885dcdb /puppet/modules/resolvconf/templates | |
parent | b77078c4bac8dd2ecc00001696455c34c378f636 (diff) | |
parent | 4d36a4d9ca9880d9cc12f81b84a50981831d9394 (diff) |
Merge commit '4d36a4d9ca9880d9cc12f81b84a50981831d9394' as 'puppet/modules/resolvconf'
Diffstat (limited to 'puppet/modules/resolvconf/templates')
-rw-r--r-- | puppet/modules/resolvconf/templates/resolvconf.OpenBSD.erb | 5 | ||||
-rw-r--r-- | puppet/modules/resolvconf/templates/resolvconf.erb | 7 |
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 -%> |