Skip to content
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

Named.conf Updates #13

Closed
rustyautopsy opened this issue Dec 7, 2012 · 1 comment
Closed

Named.conf Updates #13

rustyautopsy opened this issue Dec 7, 2012 · 1 comment

Comments

@rustyautopsy
Copy link

I have setup views on my bind box. My views break if I do not comment out the last two line in named.conf...

include "/etc/bind/named.conf.options";
//include "/etc/bind/named.conf.local";
//include "/etc/bind/named.conf.default-zones";

I have my views setup as follows...

//
// Lan zone recursion is the default
//
view "internal-view" {
match-clients { trusted-subnets; };
recursion yes;
include "/etc/bind/named.conf.default-zones";
zone "example.com" {
type master;
file "/etc/bind/db.internal.example.com";
};
zone "1.0.10.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.1.0.10.IN-ADDR.ARPA";
};
zone "2.0.10.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.2.0.10.IN-ADDR.ARPA";
};
zone "3.0.10.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.3.0.10.IN-ADDR.ARPA";
};
};
//
// external zone w/o recursion
//
view "external-view" {
match-clients { any; };
recursion no;
allow-transfer { slaves; };
include "/etc/bind/named.conf.local";
};

What do you suggest is the best way to deal with this? Allowing for the ability to pass is a source attribute into your file resource for /etc/bind/named.conf in config.pp? Managed the resulting named.conf via augeas?

Thanks in advance.

Cheers.

@ajjahn
Copy link
Owner

ajjahn commented Dec 7, 2012

Since this module doesn't have any requirements for what is in the named.conf file, and only ensures that it exists. I suppose you could use any method you want to provision the contents of the file. Although, I'd be to adding that functionality if you'd like to take a stab at it.

@ajjahn ajjahn closed this as completed Jan 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants