New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stub addresses are generated as hostnames in config #102
Comments
Can I see the manifest you used to get into the situation you mentioned? |
On 2015-07-23 17:35, Zach Leslie wrote:
Sure, I manage my stubs as hiera data, like this: recursor::stubs: The class is defined in a profile: class { "unbound": $stubs=hiera_hash('recursor::stubs',{}) This resulted in just the V6 addresses beeing stub-addr, while the V4 Regards, |
Ah, sounds like we just need to improve our address validation. |
I'll test shortly. |
After testing, my configs looks good and my servers are online. Are you in a position to test? I'm prepared to merge #104 to correct this. |
Hi, On 2015-07-28 16:56, Zach Leslie wrote:
The patch looks good, still there is a minor issue with the parser. Error: Could not retrieve catalog from remote server: Error 400 on However, I found a similar workaround in another module and adapted it: diff --git a/lib/puppet/parser/functions/validate_unbound_addr.rb
Using this, the IPs were generated quite fine as "stub-addr" and -Markus |
That puppet_x code is missing on the master it looks like. So now that we rely on functions, and functions are executed on the master. If you have an environment that contains this code, you can do |
On 2015-07-29 00:33, Zach Leslie wrote:
Thanks for the hint, just downloaded the plugins using your command and -Markus |
#104 has been merged and 1.2.0 has been released for this effort. Thank you for the report. |
Hello,
I had the problem that IPv4 addresses were generated as "stub-host" entries in the config file instead of "stub-addr".
Maybe it is better to check for valid IP instead of domain_name in the stub template?
<% if scope.function_is_ip_address([addr]) -%>
stub-addr: <%= addr %>
<% else -%>
stub-host: <%= addr %>
<% end -%>
The text was updated successfully, but these errors were encountered: