Fix lint warnings

This commit is contained in:
Cedric DEFORTIS 2018-02-19 09:43:59 +01:00
parent 5870f37f27
commit a0b6e70c19
4 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
class { 'bind':
class { '::bind':
chroot => true,
# Note: this file MUST be into the /etc/named directory so the
# RHEL7 specific setup-named-chroot.sh script will make it available into

View File

@ -1,13 +1,14 @@
# Chroot class for distribution without specific packaging
class bind::chroot::manual(
$chroot_dir = $::bind::defaults::chroot_dir,
) inherits bind::defaults {
exec { 'mkdir-p-$chroot_dir':
command => "mkdir -p ${::bind::defaults::chroot_dir}",
path => ['/bin', '/usr/bin'],
creates => "${::bind::defaults::chroot_dir}",
creates => $::bind::defaults::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}/dev",
"${::bind::defaults::chroot_dir}/var",

View File

@ -1,3 +1,4 @@
# Chroot class for distribution using dedicated package
class bind::chroot::package(
$chroot_dir = $::bind::defaults::chroot_dir,
) inherits bind::defaults {

View File

@ -19,7 +19,7 @@ class bind (
# especially when not using hiera (i.e. when using Foreman as ENC):
$default_zones_include = $::bind::defaults::default_zones_include,
) 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')
}
File {