Puppet Class: xdmod::user

Defined in:
manifests/user.pp

Summary

Manage XDMoD user

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

class xdmod::user {
  if $xdmod::manage_user {
    group { 'xdmod':
      ensure     => 'present',
      name       => 'xdmod',
      gid        => $xdmod::group_gid,
      system     => true,
      forcelocal => true,
    }

    user { 'xdmod':
      ensure     => 'present',
      name       => 'xdmod',
      uid        => $xdmod::user_uid,
      gid        => 'xdmod',
      shell      => '/sbin/nologin',
      home       => '/var/lib/xdmod',
      managehome => true,
      comment    => 'Open XDMoD',
      system     => true,
      forcelocal => true,
    }

    file { '/var/lib/xdmod':
      ensure => 'directory',
      owner  => 'xdmod',
      group  => 'xdmod',
      mode   => '0700',
    }
  }
}