Skip to content

Commit

Permalink
Merge pull request #1 from ajjahn/master
Browse files Browse the repository at this point in the history
Merge updates
  • Loading branch information
tprobinson authored Oct 25, 2017
2 parents 71a7095 + 57946eb commit a63db05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
}

concat::fragment {'default-zones.header':
target => $dns::server::params::rfc1912_zones_cfg,
order => '00',
source => "puppet:///modules/${module_name}/named.conf.default-zones",
target => $dns::server::params::rfc1912_zones_cfg,
order => '00',
content => template('dns/named.conf.default-zones.erb'),
}

include dns::server::default
Expand Down
11 changes: 4 additions & 7 deletions manifests/server/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@
$default_template = 'default.debian.erb'
$default_dnssec_enable = true
$default_dnssec_validation = 'auto'
case $::operatingsystemmajrelease {
'8': {
$necessary_packages = ['bind9']
}
default: {
$necessary_packages = [ 'bind9', 'dnssec-tools' ]
}
if versioncmp( $::operatingsystemmajrelease, '8' ) >= 0 {
$necessary_packages = ['bind9']
} else {
$necessary_packages = [ 'bind9', 'dnssec-tools' ]
}
}
'RedHat': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
file "<%= @cfg_dir %>/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
type master;
file "/etc/bind/db.local";
file "<%= @cfg_dir %>/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
file "<%= @cfg_dir %>/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
file "<%= @cfg_dir %>/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
file "<%= @cfg_dir %>/db.255";
};

0 comments on commit a63db05

Please sign in to comment.