Page MenuHomePhabricator
Paste P4527

Phabricator installation guide on labs
ActivePublic

Authored by Paladox on Nov 28 2016, 7:50 PM.
Tags
None
Referenced Files
F4932336: Phabricator installation guide on labs
Dec 1 2016, 7:37 PM
F4932329: Phabricator installation guide on labs
Dec 1 2016, 7:36 PM
F4932321: Phabricator installation guide on labs
Dec 1 2016, 7:35 PM
F4932284: Phabricator installation guide on labs
Dec 1 2016, 7:25 PM
F4877764: Phabricator installation guide on labs
Nov 28 2016, 7:50 PM
Subscribers
None
I did this on Jessie so may be different on different distro's
1. apt-get install mariadb-server-10.1
(set password to something like phabricator)
2. go to https://horizon.wikimedia.org/project/proxy/ and create a web proxy domain (on port 80)
2. Add this to Heira:<project name> (example phabricator)
Note: Please change the ip to your instance ip otherwise this will not work, also change the domain name phabricator-01.wmflabs.org to your own domain which you created on step 2.
"role::deployment::repo_config":
phabricator/deployment:
upstream: https://gerrit.wikimedia.org/r/p/phabricator/deployment.git
deployment_server: localhost <-- keep localhost as changing this will fail in labs
"scap::deployment_server": localhost <-- keep localhost as scap will fail if you change this
"phabricator::trusted_proxies":
- 10.68.16.15
"scap::server::keyholder_agents":
phabricator:
trusted_groups:
- 'project-%{::labsproject}'
"scap::server::sources":
phabricator/deployment:
repository: phabricator/deployment
phabricator_servers:
- phabricator.phabricator.eqiad.wmflabs <-- change phabricator.phabricator to instance_name.project_name
"cache::misc::nodes":
eqiad:
- phabricator.phabricator.eqiad.wmflabs <-- change phabricator.phabricator to instance_name.project_name
"phabricator::vcs::address::v4":
- 10.68.16.15 <-- change ip to the ip of your instance
phabricator_app_user: root <-- change the MySQL user to the user you created in MySQL you choose
phabricator_app_pass: phabricator <-- change the pass to the pass you choose
phabricator_daemons_user: root <-- change the MySQL user to the user you created in MySQL you choose
phabricator_daemons_pass: phabricator <-- change the pass to the pass you choose
"phabricator::mysql_admin_user": root <-- change the MySQL user to the user you created in MySQL you choose
"phabricator::mysql_admin_pass": phabricator <-- change the pass to the pass you choose
phabricator_admin_user: root <-- change the MySQL user to the user you created in MySQL you choose
phabricator_admin_pass: phabricator <-- change the pass to the pass you choose
phabricator_domain: phabricator-01.wmflabs.org <-- change the domain you created on step 2
phabricator_altdomain: phabricator-01.wmflabs.org <-- change the domain you created on step 2
phabricator_diffusion_ssh_host: git-ssh.wmflabs.org
"phabricator::vcs::listen_addresses":
- 10.68.16.15 <-- change ip to the ip of your instance
3. add this role::phabricator::main puppet role to your instance.
4. then run sudo puppet agent -tv
5. cd /srv/phab/phabricator
6. bin/storage upgrade (when asked input yes)
7. you should now be able to access your domain
This is optional in case it does not work use this
export PHABRICATOR_ENV=phd
sudo -E bin/storage upgrade <-- command you run ie that