#Set p4config export P4CONFIG=.p4config echo P4CONFIG=.p4config >> /etc/bash.bashrc #Install the package sudo echo "deb http://package.perforce.com/apt/ubuntu trusty release" >> /etc/apt/sources.list wget -qO - http://package.perforce.com/perforce.pubkey | sudo apt-key add - sudo aptitude update sudo aptitude -y install helix-git-connector sudo aptitude -y install helix-p4d sudo /opt/perforce/sbin/configure-helix-p4d.sh -n perforce1 -p ssl:192.168.2.72:1666 -r /opt/perforce/servers/perforce1 -u super -P REinforce --unicode #Create a workspace on the gconn machine echo REinforce > hws/passwd mkdir ws cd ws cp ../hws/p4_config ./.p4config p4 login < ../hws/passwd p4 client -i < ../hws/client #Configure gconn sudo /opt/perforce/git-connector/bin/configure-git-connector.sh -n --p4port ssl:192.168.2.72:1666 --super super --superpassword REinforce --graphdepot graph --gcuserp4password REinforce --https --gconnhost 192.168.2.72 --forcehttps --ssh --sshuser git --croninterval 5 --serverid gconn1 #Export the location of the gconn configuration file, necessary for enabling mirroring sudo -u git -i export GCONN_CONFIG=/opt/perforce/git-connector/gconn.conf echo GCONN_CONFIG=/opt/perforce/git-connector/gconn.conf >> ~/.bashrc #setup the mirror hook. gconn --mirrorhooks add graph/testrepo https://root:REinforce@172.16.100.12/root/testrepo.git > secret #As we are using a self-signed cert for HTH, tell Git not to verify the certs git config --global http.sslverify false #Add an SSH key for user 'jen'. sudo -u vagrant -i cd /home/vagrant/ws p4 trust -y p4 login < /home/vagrant/hws/passwd #Create the public key for user jen. #We do not want the private key in the workspace. cd /home/vagrant/hws rm jen_key* ssh-keygen -t rsa -f jen_key p4 -u super -p ssl:192.168.2.72:1666 user -f -i < helix_user p4 -u super -p ssl:192.168.2.72:1666 pubkey -u jen -i < /home/vagrant/hws/jen_key.pub #Give user jen admin permissions to the depot graph p4 -u super -p ssl:192.168.2.72:1666 grant-permission -u jen -p admin -d graph #set the password for jen p4 -u super -p ssl:192.168.2.72:1666 configure set security=1 p4 -u super -p ssl:192.168.2.72:1666 passwd -P REinforce jen #Ensure user 'jen' is logged in p4 -p ssl:192.168.2.72:1666 -u jen login < /home/vagrant/hws/passwd #Setup the SSL certs sudo aptitude -y install openssl sudo mkdir -p /etc/gconn/ssl openssl req -x509 -subj '/C=US/ST=CA/L=Alameda/O=Perforce/OU=gconn/CN=gconn/E=gconn@perforce.com' -nodes -days 365 -newkey rsa:2048 -keyout /etc/gconn/ssl/192.168.2.72.key -out /etc/gconn/ssl/192.168.2.72.crt > /dev/null 2>&1 if [ $? -ne 0 ]; then echo 'Errors while creating self-signed certificates!' exit 1 else echo 'Self-signed certificates have been created' fi sudo mkdir -p /etc/gconn/trusted-certs sudo cp /etc/gconn/ssl/192.168.2.72.crt /etc/gconn/trusted-certs/192.168.2.72.crt #We are not adding data to the graph depot, as it needs to be empty for HTH to be able to push to it git config --global http.sslverify false git config --global user.email jen@example.com
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 25880 | Jen Bottom | Integrating work on HTH setups from dev to main | ||
#5 | 25621 | Jen Bottom | Integrating sone fixes from dev to main | ||
#4 | 25132 | Jen Bottom | Copy up from dev to main | ||
#3 | 24615 | Jen Bottom | Cleaning up the combo directory | ||
#2 | 24457 | Jen Bottom | Copy up of changes to active_directory and HTH setups to main | ||
#1 | 24317 | Jen Bottom |
Making some changes to the .p4ignore file. Also adding some bash lines that setup the environment for HTH API (setup.sh). Have also moved separate_gconn to combo |
||
//guest/jen_bottom/vagrant/hth/separate_gconn/gconn.sh | |||||
#1 | 23695 | Jen Bottom | Adding some cluster configuration, and changing the location of the HTH setup with a separate Helix Core VM (combo) | ||
//guest/jen_bottom/vagrant/hth/gconn.sh | |||||
#6 | 23660 | Jen Bottom | Integrating from dev to main | ||
#5 | 23627 | Jen Bottom | Integrating gconn script fixes from dev to main | ||
#4 | 23550 | jenbottom | Adding different IP addresses for gconn and hth, so they won't conflict with other devices on network | ||
#3 | 23503 | Jen Bottom | Integrating some changes to HTH setup scripts from dev stream | ||
#2 | 23475 | Jen Bottom | Adding creation of self-signed SSL certs to the HTH provisioner script. | ||
#1 | 23051 | Jen Bottom | Adding work on the Vagrant Setup for HTH with one way mirroring |