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.
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.
Every time I run this recipe, the gitzone.conf was added to named.conf. like:
Please don't add the line if the config is already exists.