On Sat, Sep 10, 2011 at 7:59 PM, Jon Forrest <nob...@gmail.com> wrote:

> On 9/10/2011 6:57 PM, Jonathan Stanton wrote:
>
>>
>> Maybe I'm missing something here, but I think Jon was asking
>> something a bit different -- he doesn't want to check the validity of
>> the erb template (i.e. ruby syntax check) but syntax check the named
>> zone file generated by the template.
>>
>
> Precisely. Maybe later I'll face the issue of ruby syntax
> problems but right now I need to detect named syntax errors
> before they cause problems.


Ah, yes, I did misread your question.

You could adopt the above method to produce the actual templatized output
and then use named to verify it, but as others have said, distros are much
better at letting you verify configs before restarting nowadays, and I'd
probably push this there.

In the past I tend to solve this with a canary node that implements the new
configuration, and then out of band testing verifies that DNS is still
working happily for critical infrastructure entries before before the
configuration gets pushed to "live" name servers.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to