Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add supoort for RDNSS and DNSSL #1

Merged
merged 2 commits into from

2 participants

@mcanevet

No description provided.

@fpletz fpletz merged commit 3722f33 into fpletz:master
@fpletz
Owner

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 5, 2013
  1. @mcanevet

    Support RDNSS and DNSSL

    mcanevet authored
  2. @mcanevet

    Fix README.md

    mcanevet authored
This page is out of date. Refresh to see the latest.
View
10 README.md
@@ -19,6 +19,16 @@ Unix-like operating system that radvd and puppet support.
'AdvAutonomous' => 'on',
},
},
+ rdnss => {
+ '2001:0DB8:2342:babe::1' => {
+ 'AdvRDNSSLifetime' => 30,
+ },
+ },
+ dnssl => {
+ 'branch.example.com example.com' => {
+ 'AdvDNSSLLifetime' => 30,
+ },
+ },
}
## Contributions welcome!
View
4 manifests/interface.pp
@@ -1,6 +1,8 @@
define radvd::interface (
$options={},
- $prefixes={}
+ $prefixes={},
+ $rdnss={},
+ $dnssl={},
) {
concat::fragment { "radvd.conf-interface-${name}":
target => $radvd::params::conffile,
View
18 templates/radvd.conf-interface.erb
@@ -12,4 +12,22 @@ interface <%= name %>
<%- end -%>
};
<%- end -%>
+
+ <%- rdnss.sort.each do |dns,popts| -%>
+ RDNSS <%= dns %>
+ {
+ <%- popts.sort.each do |k,v| -%>
+ <%= k -%> <%= v %>;
+ <%- end -%>
+ };
+ <%- end -%>
+
+ <%- dnssl.sort.each do |domain,popts| -%>
+ DNSSL <%= domain %>
+ {
+ <%- popts.sort.each do |k,v| -%>
+ <%= k -%> <%= v %>;
+ <%- end -%>
+ };
+ <%- end -%>
};
Something went wrong with that request. Please try again.