summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet/manifests/system_user.pp
blob: 819ef4a2886174c1138fb396ffc814f09df32557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define sunet::system_user(
  $username,
  $group,
  $system = true,
  $shell = '/bin/false'
  ) {

  user { $username :
    ensure => present,
    name => $username,
    membership => minimum,
    system => $system,
    require => Group[ $group ],
    shell => $shell,
  }

  group { $group :
    ensure => present,
    name => $group,
  }

}