Event Timeline
Comment Actions
Hi @Dzahn - are you aware of any Task about the adoption of Phorge? I've just found this Paste at the moment
Also, maybe it could be a good idea to mirror the upstream Phorge repository
https://we.phorge.it/source/phorge/
I ask since I'm hammering a lot Phorge in these days with proposed patches and day by day they are approved, and I wonder if I can help in any way here too.
Phorge has a Tag for Wikimedia for example:
Comment Actions
The code that installs it is at modules/profile/manifests/phorge.pp in operations/puppet git repo.
`# SPDX-License-Identifier: Apache-2.0
# https://we.phorge.it - fork of Phabricator
class profile::phorge(
String $server_name = lookup('profile::phorge::server_name'),
Stdlib::Unixpath $install_path_arcanist = lookup('profile::phorge::install_path_arcanist'),
Stdlib::HTTPSUrl $git_origin_arcanist = lookup('profile::phorge::git_origin_arcanist'),
Stdlib::Unixpath $install_path_phorge = lookup('profile::phorge::install_path_phorge'),
Stdlib::HTTPSUrl $git_origin_phorge = lookup('profile::phorge::git_origin_phorge'),
Stdlib::Unixpath $repo_path = lookup('profile::phorge::repo_path'),
){
ensure_packages([
'libapache2-mod-php',
'git',
'php-mbstring',
'php-curl',
'php-mysql',
'php-zip',
'php-gd',
'php-apcu',
'python3-pygments',
])
$httpd_modules = ['rewrite', 'headers', 'php7.4']
class { 'httpd::mpm':
mpm => 'prefork',
}
class { 'httpd':
modules => $httpd_modules,
purge_manual_config => false,
require => Class['httpd::mpm'],
}
$document_root = "${install_path_phorge}/webroot"
httpd::site { 'phorge':
content => template('profile/phorge/httpd.conf.erb'),
}
wmflib::dir::mkdir_p([$install_path_arcanist, $install_path_phorge, $repo_path])
git::clone { 'arcanist':
ensure => 'present',
origin => $git_origin_arcanist,
directory => $install_path_arcanist,
branch => 'master',
}
git::clone { 'phorge':
ensure => 'present',
origin => $git_origin_phorge,
directory => $install_path_phorge,
branch => 'master',
}
}cloud/eqiad1/devtools/common.yaml:profile::phorge::git_origin_arcanist: 'https://we.phorge.it/source/arcanist.git' cloud/eqiad1/devtools/common.yaml:profile::phorge::git_origin_phorge: 'https://we.phorge.it/source/phorge.git'
^ here you see we are following your upstream repo