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
|
# File 'manifests/cvmfs/user.pp', line 3
class osg::cvmfs::user {
if $osg::cvmfs::manage_fuse_group and versioncmp($::operatingsystemrelease, '7.0') < 0 {
if $osg::cvmfs::manage_user {
$_fuse_group_before = User['cvmfs']
} else {
$_fuse_group_before = undef
}
group { 'fuse':
ensure => 'present',
name => $osg::cvmfs::fuse_group_name,
gid => $osg::cvmfs::fuse_group_gid,
system => $osg::cvmfs::fuse_group_system,
before => $_fuse_group_before,
forcelocal => true,
}
}
if $osg::cvmfs::manage_user {
if versioncmp($::operatingsystemrelease, '7.0') < 0 {
$cvmfs_groups = ['fuse']
} else {
$cvmfs_groups = undef
}
user { 'cvmfs':
ensure => 'present',
name => $osg::cvmfs::user_name,
uid => $osg::cvmfs::user_uid,
gid => $osg::cvmfs::group_name,
groups => $cvmfs_groups,
home => $osg::cvmfs::user_home,
shell => $osg::cvmfs::user_shell,
system => $osg::cvmfs::user_system,
comment => $osg::cvmfs::user_comment,
managehome => $osg::cvmfs::user_managehome,
forcelocal => true,
}
}
if $osg::cvmfs::manage_group {
group { 'cvmfs':
ensure => 'present',
name => $osg::cvmfs::group_name,
gid => $osg::cvmfs::group_gid,
system => $osg::cvmfs::group_system,
forcelocal => true,
}
}
}
|