- From: "Kadel-Garcia, Nico" <
>
- To: "
" <
>
- Subject: [chef] RE: Re: RE: Re: RE: Re: Keeping DNS configuration eerrors from breaking working server with bind cookboks
- Date: Wed, 25 Jun 2014 19:54:26 +0000
- Accept-language: en-US
The "execute" part is easy, I've done some tests with that. I can even wrap
the service commands in an "if" statement to use different start_command and
restart_command when the verification tools is available, and when it's not.
The difficulty I'm having is getting it to run immediately before the delayed
notification based service restarts, reloads, or starts, without also running
before all of any modified configuration files have been deployed. I'd
originally just stuck it into the start_command, reload_command, etc. as part
of the execution string, but that seems less than graceful.
Once it's working, then yes, an LWRP or enhancement to the basic "service"
toolkit might be in order. I'd love to see it for other daemons, such as
HTTPD, that have configuration testers.
--
Nico Kadel-Garcia
Senior Systems Consultant
Email:
Cell Phone: +1.339.368.2428
-----Original Message-----
From: Daniel DeLeo
[mailto:
On Behalf Of Daniel DeLeo
Sent: Wednesday, June 25, 2014 3:13 PM
To:
Subject: [chef] Re: RE: Re: RE: Re: Keeping DNS configuration eerrors from
breaking working server with bind cookboks
On Wednesday, June 25, 2014 at 11:21 AM, Kadel-Garcia, Nico wrote:
>
The extent to which I do *not* want to re-invent RFC compliant BIND
>
verification, in ruby, from scratch, cannot be overstated.
>
"named-checkconf" and "named-checkzone" do a pretty good job.
No one was suggesting you do that.
Maybe you could set up your file/template resources to notify an execute
resource which will run the config checker, which in turn will fail if the
config is invalid. That could be wrapped up in a LWRP to make it easy to
reuse.
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.