Purge zones and configs that aren't managed
This commit is contained in:
parent
378fbc8744
commit
ad347e8b26
@ -32,38 +32,34 @@ class bind (
|
|||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { $confdir:
|
File {
|
||||||
ensure => directory,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => $bind::params::bind_group,
|
group => $::bind::params::bind_group,
|
||||||
mode => '2755',
|
mode => 0644,
|
||||||
|
}
|
||||||
|
|
||||||
|
file { [ $confdir, "${confdir}/zones" ]:
|
||||||
|
ensure => directory,
|
||||||
|
mode => 2755,
|
||||||
purge => true,
|
purge => true,
|
||||||
|
recurse => true,
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${confdir}/named.conf":
|
file { "${confdir}/named.conf":
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => $bind::params::bind_group,
|
|
||||||
mode => '0644',
|
|
||||||
content => template('bind/named.conf.erb'),
|
content => template('bind/named.conf.erb'),
|
||||||
notify => Service[$bind::params::bind_service],
|
notify => Service[$bind::params::bind_service],
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { [ "${confdir}/zones", "${confdir}/keys" ]:
|
file { "${confdir}/keys":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
mode => 0755,
|
||||||
group => $bind::params::bind_group,
|
|
||||||
mode => '0755',
|
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${confdir}/named.conf.local":
|
file { "${confdir}/named.conf.local":
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => $bind::params::bind_group,
|
|
||||||
mode => '0644',
|
|
||||||
replace => false,
|
replace => false,
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user