Add modelines and reformat pp files
This commit is contained in:
parent
a21da43817
commit
c4bc2a1c4a
@ -1,3 +1,5 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
define bind::acl (
|
define bind::acl (
|
||||||
$addresses,
|
$addresses,
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
class bind (
|
class bind (
|
||||||
$confdir = $bind::params::confdir,
|
$confdir = $bind::params::confdir,
|
||||||
$cachedir = $bind::params::cachedir,
|
$cachedir = $bind::params::cachedir,
|
||||||
|
|||||||
@ -1,10 +1,13 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
define bind::key (
|
define bind::key (
|
||||||
$algorithm = 'hmac-sha256',
|
$algorithm = 'hmac-sha256',
|
||||||
$secret,
|
$secret,
|
||||||
$owner = 'root',
|
$owner = 'root',
|
||||||
$group = $bind::params::bind_group,
|
$group = $bind::params::bind_group,
|
||||||
|
path = "${::bind::confdir}/keys"
|
||||||
) {
|
) {
|
||||||
file { "${bind::confdir}/keys/${name}":
|
file { "${path}/${name}":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => $owner,
|
owner => $owner,
|
||||||
group => $group,
|
group => $group,
|
||||||
@ -13,9 +16,11 @@ define bind::key (
|
|||||||
notify => Service[$bind::params::bind_service],
|
notify => Service[$bind::params::bind_service],
|
||||||
require => Package[$bind::params::bind_package],
|
require => Package[$bind::params::bind_package],
|
||||||
}
|
}
|
||||||
|
if (defined(Class['bind'])) {
|
||||||
concat::fragment { "bind-key-${name}":
|
concat::fragment { "bind-key-${name}":
|
||||||
order => '10',
|
order => '10',
|
||||||
target => "${bind::confdir}/keys.conf",
|
target => "${bind::confdir}/keys.conf",
|
||||||
content => "include \"${bind::confdir}/keys/${name}\";\n",
|
content => "include \"${bind::confdir}/keys/${name}\";\n",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
class bind::params {
|
class bind::params {
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
define bind::view (
|
define bind::view (
|
||||||
$match_clients = 'any',
|
$match_clients = 'any',
|
||||||
$match_destinations = '',
|
$match_destinations = '',
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
define bind::zone (
|
define bind::zone (
|
||||||
$zone_type,
|
$zone_type,
|
||||||
$domain = '',
|
$domain = '',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user