puppet-bind/manifests/chroot/package.pp
Cédric Defortis 44bb1b0e0e First draft of chroot implementation for Debian
- RHEL chroot code has been moved into a bind::chroot::package class

- Debian family (and probably other families) can use the
  `bind::chroot::manual` class to enable chroot for bind using the method
  described here: https://wiki.debian.org/Bind9#Bind_Chroot
2018-02-19 09:19:22 +01:00

22 lines
621 B
Puppet

class bind::chroot::package(
$chroot_dir = $::bind::defaults::chroot_dir,
) inherits bind::defaults {
package { 'bind-chroot':
ensure => latest,
}
service { 'bind':
ensure => running,
name => 'named-chroot',
enable => true,
hasrestart => true,
hasstatus => true,
}
# On RHEL Family, there is a dedicated service named-chroot and we need
# to stop/disable 'named' service:
service { 'bind-without-chroot':
ensure => stopped,
name => $::bind::defaults::bind_service,
enable => false,
}
}