Fix lint warnings
This commit is contained in:
parent
5870f37f27
commit
a0b6e70c19
@ -1,4 +1,4 @@
|
|||||||
class { 'bind':
|
class { '::bind':
|
||||||
chroot => true,
|
chroot => true,
|
||||||
# Note: this file MUST be into the /etc/named directory so the
|
# Note: this file MUST be into the /etc/named directory so the
|
||||||
# RHEL7 specific setup-named-chroot.sh script will make it available into
|
# RHEL7 specific setup-named-chroot.sh script will make it available into
|
||||||
|
|||||||
@ -1,13 +1,14 @@
|
|||||||
|
# Chroot class for distribution without specific packaging
|
||||||
class bind::chroot::manual(
|
class bind::chroot::manual(
|
||||||
$chroot_dir = $::bind::defaults::chroot_dir,
|
$chroot_dir = $::bind::defaults::chroot_dir,
|
||||||
) inherits bind::defaults {
|
) inherits bind::defaults {
|
||||||
exec { 'mkdir-p-$chroot_dir':
|
exec { 'mkdir-p-$chroot_dir':
|
||||||
command => "mkdir -p ${::bind::defaults::chroot_dir}",
|
command => "mkdir -p ${::bind::defaults::chroot_dir}",
|
||||||
path => ['/bin', '/usr/bin'],
|
path => ['/bin', '/usr/bin'],
|
||||||
creates => "${::bind::defaults::chroot_dir}",
|
creates => $::bind::defaults::chroot_dir,
|
||||||
}
|
}
|
||||||
# Creating system dirs under chroot dir:
|
# Creating system dirs under chroot dir:
|
||||||
file { ["${::bind::defaults::chroot_dir}",
|
file { [$::bind::defaults::chroot_dir,
|
||||||
"${::bind::defaults::chroot_dir}/etc",
|
"${::bind::defaults::chroot_dir}/etc",
|
||||||
"${::bind::defaults::chroot_dir}/dev",
|
"${::bind::defaults::chroot_dir}/dev",
|
||||||
"${::bind::defaults::chroot_dir}/var",
|
"${::bind::defaults::chroot_dir}/var",
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
# Chroot class for distribution using dedicated package
|
||||||
class bind::chroot::package(
|
class bind::chroot::package(
|
||||||
$chroot_dir = $::bind::defaults::chroot_dir,
|
$chroot_dir = $::bind::defaults::chroot_dir,
|
||||||
) inherits bind::defaults {
|
) inherits bind::defaults {
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class bind (
|
|||||||
# especially when not using hiera (i.e. when using Foreman as ENC):
|
# especially when not using hiera (i.e. when using Foreman as ENC):
|
||||||
$default_zones_include = $::bind::defaults::default_zones_include,
|
$default_zones_include = $::bind::defaults::default_zones_include,
|
||||||
) inherits bind::defaults {
|
) inherits bind::defaults {
|
||||||
if $chroot and !$chroot_supported {
|
if $chroot and !$::bind::defaults::chroot_supported {
|
||||||
fail('Chroot for bind is not supported on your OS')
|
fail('Chroot for bind is not supported on your OS')
|
||||||
}
|
}
|
||||||
File {
|
File {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user