apealive-cookbooks / gitzone

Chef cookbook for git-shell managed BIND zone files
Other
1 stars 0 forks source link

Over added gitzone specific config multiple time. #2

Closed ikeji closed 10 years ago

ikeji commented 10 years ago

Every time I run this recipe, the gitzone.conf was added to named.conf. like:

zone "." in {
  type hint;
  file "named.ca";
};
include "/etc/bind/repos/gitzone.conf";
include "/etc/bind/repos/gitzone.conf";
include "/etc/bind/repos/gitzone.conf";

Please don't add the line if the config is already exists.

epcim commented 10 years ago

I am using Chef:File:Util insert_line_if_no_match so I guess should work in latest version. What version you are working with? Pls try latest from github.