Puppet Class: psick::windows::users

Defined in:
manifests/windows/users.pp

Overview

Manages Windows users using Puppet user type

Parameters:

  • users_hash (Hash) (defaults to: {})
  • resource_default_arguments (Hash) (defaults to: {})
  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/windows/users.pp', line 2

class psick::windows::users (
  Hash $users_hash = {},
  Hash $resource_default_arguments = {},

  Boolean $manage      = $psick::manage,
  Boolean $noop_manage = $psick::noop_manage,
  Boolean $noop_value  = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    User {
      * => $resource_default_arguments,
    }

    $users_hash.each |$k,$v| {
      user { $k:
        * => $v,
      }
    }
  }
}