Puppet Class: phabricator::phd
- Defined in:
- modules/phabricator/manifests/phd.pp
Overview
Class: phabricator::phd
Phabricator Daemon launcher secure.phabricator.com/book/phabricator/article/managing_daemons/
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 |
# File 'modules/phabricator/manifests/phd.pp', line 6
class phabricator::phd (
String $phd_user = 'phd',
Stdlib::Unixpath $phd_log_dir = '/var/log/phd',
Stdlib::Unixpath $basedir = '/',
) {
class { 'phabricator::phd::user':
user_name => $phd_user,
}
# PHD user needs perms to drop root perms on start
file { "${basedir}/phabricator/scripts/daemon/":
owner => $phd_user,
recurse => true,
}
# Managing repos as the PHD user
file { "${basedir}/phabricator/scripts/repository/":
owner => $phd_user,
recurse => true,
}
file { $phd_log_dir:
ensure => directory,
owner => $phd_user,
group => $phd_user,
}
logrotate::conf { 'phd':
ensure => present,
source => 'puppet:///modules/phabricator/logrotate_phd',
}
}
|