Fixed dns::server for Puppet 2.7
This commit is contained in:
parent
8a729c3e9f
commit
97821c14ac
1 changed files with 34 additions and 33 deletions
|
@ -72,28 +72,7 @@ class dns::server {
|
||||||
require => Exec["rndc-confgen"],
|
require => Exec["rndc-confgen"],
|
||||||
}
|
}
|
||||||
|
|
||||||
case $operatingsystem {
|
define populate_zones() {
|
||||||
"ubuntu": {
|
|
||||||
$ipaddr = $dns_listener_ipaddr
|
|
||||||
file { "${confdir}/named.conf.local":
|
|
||||||
ensure => present,
|
|
||||||
content => template("dns/named.conf.local.erb"),
|
|
||||||
mode => 0640,
|
|
||||||
owner => "root",
|
|
||||||
group => "bind",
|
|
||||||
require => Package["bind"],
|
|
||||||
notify => Service["named"],
|
|
||||||
}
|
|
||||||
file { "${confdir}/named.conf.options":
|
|
||||||
ensure => present,
|
|
||||||
content => template("dns/named.conf.options.erb"),
|
|
||||||
mode => 0640,
|
|
||||||
owner => "root",
|
|
||||||
group => "bind",
|
|
||||||
require => Package["bind"],
|
|
||||||
notify => Service["named"],
|
|
||||||
}
|
|
||||||
define populate_zones {
|
|
||||||
$zone = $name
|
$zone = $name
|
||||||
file { "${confdir}/db.${zone}":
|
file { "${confdir}/db.${zone}":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -125,6 +104,28 @@ class dns::server {
|
||||||
notify => Service["named"],
|
notify => Service["named"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case $operatingsystem {
|
||||||
|
"ubuntu": {
|
||||||
|
$ipaddr = $dns_listener_ipaddr
|
||||||
|
file { "${confdir}/named.conf.local":
|
||||||
|
ensure => present,
|
||||||
|
content => template("dns/named.conf.local.erb"),
|
||||||
|
mode => 0640,
|
||||||
|
owner => "root",
|
||||||
|
group => "bind",
|
||||||
|
require => Package["bind"],
|
||||||
|
notify => Service["named"],
|
||||||
|
}
|
||||||
|
file { "${confdir}/named.conf.options":
|
||||||
|
ensure => present,
|
||||||
|
content => template("dns/named.conf.options.erb"),
|
||||||
|
mode => 0640,
|
||||||
|
owner => "root",
|
||||||
|
group => "bind",
|
||||||
|
require => Package["bind"],
|
||||||
|
notify => Service["named"],
|
||||||
|
}
|
||||||
populate_zones { $dns_zones: }
|
populate_zones { $dns_zones: }
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue