Puppet Class: almalinux_hardening::services::disable::dns

Defined in:
manifests/services/disable/dns.pp

Summary

Disable named Service

Overview

Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli

Examples:

include almalinux_hardening::services::disable::dns


17
18
19
20
21
22
23
24
25
# File 'manifests/services/disable/dns.pp', line 17

class almalinux_hardening::services::disable::dns {
  if $almalinux_hardening::enable_disable_dns {
    service { 'disable_dns':
      ensure => 'stopped',
      name   => 'named.service',
      enable => 'mask',
    }
  }
}