Puppet Class: almalinux_hardening::services::disable::nfs

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

Summary

Disable Network File System (nfs)

Overview

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

Examples:

include almalinux_hardening::services::disable::nfs


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/services/disable/nfs.pp', line 20

class almalinux_hardening::services::disable::nfs {
  if $almalinux_hardening::enable_disable_nfs {
    service { 'disable_nfs_service':
      ensure => 'stopped',
      name   => 'nfs-server.service',
      enable => 'mask',
    }
    service { 'disable_nfs_socket':
      ensure => 'stopped',
      name   => 'nfs-server.socket',
      enable => 'mask',
    }
  }
}