#!/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:localhost: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/envars 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=localhost:1666" >> /etc/bash.bashrc sudo echo "export P4CONFIG=.p4config" >> /etc/bash.bashrc
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#12 | 18706 | jenbottom | Moving some files aroudn to make things less messy and hopefully easier to find | ||
#11 | 18640 | jenbottom | Making another change to setup script, seems some files did not have the correct permissions | ||
#10 | 18639 | jenbottom |
adding some configs for an OpenLDAP VM (from GitHub) and some more work to helix_setup_basic.sh script. Now the script should put all my sample configs in place, so I just need to login to the VM and subvmit them |
||
#9 | 18009 | jenbottom | Adding to the helix_setup_basic script, so that the key use for testing it put in the workspace, so I can just run 'p4 submit'. | ||
#8 | 18008 | jenbottom | Creating the p4config file to use for admin in the setup helix basic bash script | ||
#7 | 18007 | jenbottom | Submitting a change to the helox_basic script | ||
#6 | 17986 | jenbottom | Upgrading setup_helix_basic.sh | ||
#5 | 17965 | jenbottom | Correcting type on provision script | ||
#4 | 17963 | jenbottom | adding ssl prefix to port value | ||
#3 | 17962 | jenbottom |
If I don't use private networking, can connect to GF server suing https. Also have updated the shell script, to set some system wide variables |
||
#2 | 17961 | jenbottom |
Testing setting up GitFusion2 VM with all networking options commented out, to see if we can access our SSL enabled site by default. Also have updated the provissioning script for this VM, to do most of the apache2 setup and configuration for us |
||
#1 | 17959 | jenbottom | Adding a new entry to set up GF on Ubuntu12.04, as can't get https access to work on 14.04 |