bme_shel_users.pp 1.94 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
32
33
34
35
36
    bme-shel877clb: {
      User["yang624"]   { gid => "bme", ensure => "present" }
      realize(
        User["yang624"],
      )
    }
37
    bme-shel877cld: {
38
      User["yang624"]   { gid => "bme", ensure => "present" }
39
40
41
42
      realize(
        User["yang624"],
      )
    }
43
44
45
46
47
48
49
50
    #bme-shel877clb,
    #bme-shel877cle: {
    #  #User["kid1412"]   { shell => "/bin/bash" }
    #  realize(
    #    #User["kid1412"],
    #    User["mwill86"]
    #  )
    #}
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    #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"]
    #   )
    #}
  }

73
  # Realize full time users of the workstations
74
  realize(
75
    Group["bme"],
76
77
78
79
80
81
82
83
84
85
86
87
88
    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"],
89
    User["qzeng"],
90
91
    User["dxli"]
  )
92
}