summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-11-11 16:12:19 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-11-11 17:43:43 +0000
commitca0ce747665efec582a1ce9685faec31238c573a (patch)
treef3c0c426e0b1fb0e5f6766d94d760dc2a92d0046
parent3a6d0c36c3d14108472aad5c0aa1ff0cea91e600 (diff)
downloadinfrastructure-ca0ce747665efec582a1ce9685faec31238c573a.tar.gz
README.mdwn: Add info about deploying the Trove
Change-Id: Id3a5b9aca2507093790b5f18cf755a563e7726fc
-rw-r--r--README.mdwn45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.mdwn b/README.mdwn
index 6c19bbce..c39a3b61 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -537,3 +537,48 @@ reference system definitions can only use source code hosted on
git.baserock.org, by making it impossible to fetch code from anywhere else.
[policy]: http://wiki.baserock.org/policies/
+
+### Trove
+
+To deploy to production, run these commands in a Baserock 'devel'
+or 'build' system.
+
+ nova volume-create \
+ --display-name git.baserock.org-home \
+ --display-description '/home partition of git.baserock.org' \
+ --volume-type Ceph \
+ 300
+
+ git clone git://git.baserock.org/baserock/baserock/infrastructure.git
+ cd infrastructure
+
+ morph build systems/trove-system-x86_64.morph
+ morph deploy baserock_trove/baserock_trove.morph
+
+ nova boot git.baserock.org \
+ --key-name $keyname \
+ --flavor 'dc1.8x16' \
+ --image baserock_trove \
+ --nic "net-id=$network_id,v4-fixed-ip=192.168.222.58" \
+ --security-groups default,git-server,web-server,shared-artifact-cache \
+ --user-data baserock-ops-team.cloud-config
+
+ nova volume-attach git.baserock.org <volume-id> /dev/vdb
+
+ # Note, if this floating IP is not available, you will have to change
+ # the DNS in the DNS provider.
+ nova add-floating-ip git.baserock.org 185.43.218.183
+
+ ansible-playbook -i hosts baserock_trove/instance-config.yml
+
+ # Before configuring the Trove you will need to create some ssh
+ # keys for it. You can also use existing keys.
+
+ mkdir private
+ ssh-keygen -N '' -f private/lorry.key
+ ssh-keygen -N '' -f private/worker.key
+ ssh-keygen -N '' -f private/admin.key
+
+ # Now you can finish the configuration of the Trove with:
+
+ ansible-playbook -i hosts baserock_trove/configure-trove.yml