Puppet Class: almalinux_hardening::services::disable::dhcp

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

Summary

Disable DHCP Service

Overview

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

Examples:

include almalinux_hardening::services::disable::dhcp


19
20
21
22
23
24
25
26
27
# File 'manifests/services/disable/dhcp.pp', line 19

class almalinux_hardening::services::disable::dhcp {
  if $almalinux_hardening::enable_disable_dhcp {
    service { 'disable_dhcp':
      ensure => 'stopped',
      name   => 'dhcp.service',
      enable => 'mask',
    }
  }
}