bme_shel_users.pp 1.81 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Class: users::bme_shel_users
#
# This module manages users and groups for bme-shel877 workstations
#
# Parameters: none
#
# Actions:
#
# Requires: see Modulefile
#
# Sample Usage:
#
class users::bme_shel_users inherits users::virtual_users
{
  User["kid1412"]   { ensure => "absent" }
16
  User["lywang"]   {
17
18
    #ensure     => "absent",
    ensure     => "present",
19
20
    managehome => false
  }
21
22
23
24
25
26
27
28
29
30
  case $hostname {
    bme-shel877cla: {
      #realize(User["giftedk"])
      User["eon"]   { ensure => "present" }
      #User["tuggy"]   { ensure => "absent" }
      realize(
        User["eon"],
        #User["tuggy"]
      )
    }
31
    bme-shel877cld: {
32
      User["yang624"]   { gid => "bme", ensure => "present" }
33
34
35
36
      realize(
        User["yang624"],
      )
    }
37
38
39
40
41
42
43
44
    #bme-shel877clb,
    #bme-shel877cle: {
    #  #User["kid1412"]   { shell => "/bin/bash" }
    #  realize(
    #    #User["kid1412"],
    #    User["mwill86"]
    #  )
    #}
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
    #bme-shel877clb,
    #bme-shel877clb,
    #bme-shel877clc: {
    #   User["jcpak"]   { gid => "jcpak" }
    #   User["tuggy"]   { ensure => "absent" }
    #   realize(
    #      Group["jcpak"],
    #      User["jcpak"],
    #      User["tuggy"]
    #   )
    #}
    #default: {
    #   User["jcpak"]   { ensure => "absent" }
    #   User["tuggy"]   { ensure => "absent" }
    #   # Group["jcpak"]   { ensure => "absent" }
    #   realize(
    #      User["tuggy"],
    #      User["jcpak"]
    #   )
    #}
  }

67
  # Realize full time users of the workstations
68
  realize(
69
    Group["bme"],
70
71
72
73
74
75
76
77
78
79
80
81
82
    Group["soe"],
    Group["biboshi"],
    Group["hkchao"],
    User["biboshi"],
    User["hkchao"],
    User["yhsong"],
    User["dpan"],
    User["kid1412"],
    User["lywang"],
    User["giftedk"],
    User["schmidth"],
    User["rmfancy"],
    User["tnapier"],
83
    User["qzeng"],
84
85
    User["dxli"]
  )
86
}