Puppet Class: polkit::user::hidepid_notify

Defined in:
manifests/user/hidepid_notify.pp

Summary

A notification for hidepid user creation

Overview

This was moved into a separate class for resource notification chaining correctness

Parameters:

  • log_level (Any) (defaults to: 'warning')

    The log level to use when generating the notification message

Author:



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/user/hidepid_notify.pp', line 10

class polkit::user::hidepid_notify (
  $log_level = 'warning'
){
  assert_private()

  if pick($facts.dig('simplib__mountpoints', '/proc', 'options_hash', 'hidepid'), 0) > 0 {
    notify { "${module_name}::user - hidepid warning":
      loglevel => $log_level,
      message  => @("HIDEPID_WARNING")
        The "gid" option on "/proc" must be set if "hidepid" > 0.
        Set '${module_name}::user::report_proc_issues = false' to hide this message.
        | - HIDEPID_WARNING
    }
  }
}