#!/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-cli helix-p4d sudo /opt/perforce/sbin/configure-helix-p4d.sh -n perforce1 -p ssl:1666 -r /opt/perforce/servers/perforce1 -u super -P REinforce --unicode 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 local --p4port ssl:1666 --timezone Europe/London --unicode y --unknownuser pusher --https #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 #Create a directory structure, that will be used for the GF admin workspace. mkdir -p /home/vagrant/workspaces/gf cd /home/vagrant/workspaces/gf echo "P4USER=super" > .p4config echo "P4PORT=ssl:localhost:1666" >> .p4config echo "P4CLIENT=gf_admin" >> .p4config p4 client -i < /home/vagrant/hws/gf_configs/gf_client #Add the public key used for testing to the workspace. mkdir -p .git-fusion/users/jen/keys cp /home/vagrant/hws/keys/vagrant_key.pub /home/vagrant/workspaces/gf/.git-fusion/users/jen/keys #Put the config file for orca repo in the correct place mkdir -p .git-fusion/repos/orca cd .git-fusion/repos/orca cp /home/vagrant/hws/gf_configs/orca_config . mv orca_config p4gf_config sudo chown -R vagrant /home/vagrant/workspaces/* #Now submit the configs and keys cd /home/vagrant/workspaces/gf p4 reconcile p4 submit -d "Adding the key for user 'jen' and p4gf_config file for the Orca repo" #Now create the user jen p4 user -f -i < /home/vagrant/hws/gf_configs/gf_test_user
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 24594 | Jen Bottom | Copy up from dev to main | ||
#6 | 22901 | Jen Bottom | Commenting out the line that attempts to create the ORca repo as Git, as this does not work | ||
#5 | 22900 | Jen Bottom | Making a amsll change to GF setup script | ||
#4 | 22785 | Jen Bottom | Adding creation of the orca repo to the GF provision script | ||
#3 | 22645 | Jen Bottom | Adding a line to the GF provision script to copy the log.conf file to /etc | ||
#2 | 22236 | Jen Bottom | More automation work for the GF provissioner | ||
#1 | 22235 | Jen Bottom |
Working on making the Git Fusion provissioner better. Automating the creation of user and client. |
||
//guest/jen_bottom/vagrant/linux/setup_helix_basic.sh | |||||
#5 | 22229 | Jen Bottom | Removing the global p4gf_config file, as I want the one created by GF to be used when boxes are first set up | ||
#4 | 19154 | jenbottom |
Adapting the script to setup GF, so that it installs P4D manually first, as the option to have the script automatically do it seems to have been removed. Once working will copy code to script for just setting up P4D |
||
#3 | 19153 | jenbottom | Rolling back the script | ||
#2 | 19152 | jenbottom |
Submitting changes before working on fixing GF provission scripts. Think an option/argument has changed with configure-git-fusion.sh script |
||
#1 | 18706 | jenbottom | Moving some files aroudn to make things less messy and hopefully easier to find | ||
//guest/jen_bottom/vagrant/setup_helix_basic.sh | |||||
#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 |