bme_shel_users.pp 1.54 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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" }
  case $hostname {
    bme-shel877cla: {
      #realize(User["giftedk"])
      User["eon"]   { ensure => "present" }
      #User["tuggy"]   { ensure => "absent" }
      realize(
        User["eon"],
        #User["tuggy"]
      )
    }
    bme-shel877clb,
    bme-shel877cld,
    bme-shel877cle: {
      #User["kid1412"]   { shell => "/bin/bash" }
      realize(
        #User["kid1412"],
        User["mwill86"]
      )
    }
    #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"]
    #   )
    #}
  }

  # Realize full time users of the workstations 
  realize(
    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"],
    User["dxli"]
  )
}