Puppet Class: system_users::lock_empty_password

Defined in:
manifests/lock_empty_password.pp

Overview

System_users::Lock_empty_password

Lock all user accounts with empty passwords

Parameters:

  • lock_method (Any) (defaults to: '*')

    string to insert into password field to lock the account



6
7
8
9
10
11
12
13
14
15
# File 'manifests/lock_empty_password.pp', line 6

class system_users::lock_empty_password($lock_method = '*') {
  $users_to_lock = dig($facts, 'user_audit', 'empty_password')
  if $users_to_lock {
    user { $users_to_lock:
      password => $lock_method,
    }
  } else {
    warning("user_audit fact missing - system_users module seems broken?")
  }
}