Puppet Class: globus::user

Defined in:
manifests/user.pp

Summary

Manage globus user and group

Overview



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
# File 'manifests/user.pp', line 3

class globus::user {
  if $globus::osfamily == 'Debian' {
    $shell = '/bin/false'
  } else {
    $shell = '/sbin/nologin'
  }

  if String($globus::version) == '5' and $globus::manage_user {
    group { 'gcsweb':
      ensure     => 'present',
      gid        => $globus::group_gid,
      system     => true,
      forcelocal => true,
    }

    user { 'gcsweb':
      ensure     => 'present',
      uid        => $globus::user_uid,
      gid        => 'gcsweb',
      shell      => $shell,
      home       => '/var/lib/globus-connect-server/gcs-manager',
      managehome => false,
      system     => true,
      forcelocal => true,
    }
  }
}