Puppet Class: phabricator::phd::user

Defined in:
modules/phabricator/manifests/phd/user.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • user_name (String) (defaults to: 'phd')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/phabricator/manifests/phd/user.pp', line 2

class phabricator::phd::user(
  String $user_name = 'phd',
) {

    # global UID reserved in modules/admin/data/data.yaml
    $uid = assert_type(Admin::UID::System::Global, 920)
    # in our setup normally GID always equals UID
    $gid = assert_type(Admin::UID::System::Global, $uid)

    systemd::sysuser { $user_name:
        ensure      => present,
        id          => "${uid}:${gid}",
        description => 'Phabricator daemon user',
        # Created by systemd when starting the service
        home_dir    => '/var/run/phd',
    }
}