diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-21 14:27:08 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-30 17:28:37 +0000 |
commit | 747adce51197c465b83f08e3edf81afc4510c6b7 (patch) | |
tree | 3913e387c4276c2b8153413fbac34d1782aec61e /README.mdwn | |
parent | e81956c83d3100497b83e563420971bed5dacd47 (diff) | |
download | infrastructure-747adce51197c465b83f08e3edf81afc4510c6b7.tar.gz |
Add baserock_gerrit system
These instructions allow deploying a production-ready Gerrit instance.
Integrating the gerrit.baserock.org with git.baserock.org will be done
separately.
Diffstat (limited to 'README.mdwn')
-rw-r--r-- | README.mdwn | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/README.mdwn b/README.mdwn index 96aab45b..ca88f37e 100644 --- a/README.mdwn +++ b/README.mdwn @@ -129,6 +129,48 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ ansible-playbook -i hosts baserock_openid_provider/instance-config.yml +Gerrit +------ + +To deploy to production: + + morph build baserock_gerrit/gerrit-system-x86_64.morph + morph deploy baserock_gerrit/baserock_gerrit.morph + + nova boot gerrit.baserock.org \ + --key-name $keyname \ + --flavor 'dc1.2x4.40' \ + --image baserock_gerrit \ + --nic net-id=d079fa3e-2558-4bcb-ad5a-279040c202b5,v4-fixed-ip=192.168.222.69 \ + --user-data baserock-ops-team.cloud-config + + nova volume-create \ + --display-name gerrit-volume \ + --display-description 'Gerrit volume' \ + --volume-type Ceph \ + 100 + nova volume-attach gerrit.baserock.org <volume-id> /dev/vdb + + # Download the JRE -- this implies that you accept the 'Oracle Binary Code + # License Agreement for Java SE'. Visit Make sure you use the latest + # version of Java, don't copy-paste this commandline directly ;) + # + # See: http://www.oracle.com/technetwork/java/javase/downloads/index.html + wget --no-cookies --no-check-certificate \ + --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ + "http://download.oracle.com/otn-pub/java/jdk/8u31-b13/server-jre-8u31-linux-x64.tar.gz" + + ansible-playbook -i hosts baserock_gerrit/instance-config.yml + +Now, log into the new Gerrit instance with your OpenID. Make sure you're the +first one to have registered, and you will automatically have been added to the +Administrators group. + +You can add more users into the Administrators group later on using the [gerrit +set-members] command, or the web interface. + +[gerrit set-members]: https://gerrit-documentation.storage.googleapis.com/Documentation/2.9.4/cmd-set-members.html + Storyboard ---------- |