#!/usr/bin/env bash set -e #check to make sure this is a 64-bit machine getconf LONG_BIT | grep 64 > /dev/null || ( echo "Git Fusion requires a 64-bit machine. Exiting." && exit 1) wget -q http://package.perforce.com/perforce.pubkey -O - | sudo apt-key add - #Update sources list with the Perforce Package repo. sudo echo "deb http://package.perforce.com/apt/ubuntu precise release" >> /etc/apt/sources.list sudo aptitude update sudo aptitude -y install helix-git-fusion sudo /opt/perforce/git-fusion/libexec/configure-git-fusion.sh -n --super super --superpassword REinforce --gfp4password REinforce --gfsysuser git --gfdir /opt/perforce/git-fusion/libexec --server new --id jen --p4root /opt/perforce/servers/data/jen --p4port ssl:1666 --timezone Europe/London --unicode n #Configure https access sudo apt-get install -y apache2 libapache2-mod-authnz-external sudo a2enmod authnz_external ssl sudo service apache2 stop sudo echo "ServerName GF" >> /etc/apache2/apache2.conf sudo cp /opt/perforce/git-fusion/libexec/apache_site_example_ssl_ubuntu.txt /etc/apache2/sites-available/git-fusion-ssl sudo mkdir /etc/apache2/ssl #sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt sudo a2dissite default sudo a2ensite git-fusion-ssl sudo echo "export PATH=/opt/perforce/git-fusion/bin:$PATH" >> /etc/apache2/envvars echo "Change the user and group in /etc/apache2/envars to be git and perforce" sudo cp /opt/perforce/git-fusion/libexec/p4auth.sh.template /opt/perforce/git-fusion/libexec/p4auth.sh sudo rm -rf /var/lock/apache2 echo "Update the P4PORT value in /etc/apache2/sites-available/gitfusion-ssl, then re-start apache2" echo "Also create the certificates" #Set some system wide variables for the VM. sudo echo "export P4EDITOR=nano" >> /etc/bash.bashrc sudo echo "export P4PORT=ssl:localhost:1666" >> /etc/bash.bashrc sudo echo "export P4CONFIG=.p4config" >> /etc/bash.bashrc
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 18706 | jenbottom | Moving some files aroudn to make things less messy and hopefully easier to find | ||
#3 | 17988 | jenbottom |
Creating new vm for setting up a forwarding replica and Git Fusion. Also updating helix_vb script to install perforce-server and perforce-cli |
||
#2 | 17969 | jenbottom | Removing soem stuff from one provisioning script | ||
#1 | 17968 | jenbottom | Submitting changes to vagrantFile and shell scripts |